1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Update server_setup.adoc

This commit is contained in:
Mo 2022-05-17 12:46:38 +02:00
parent 30365a1bf3
commit c9dafadc27

View file

@ -43,14 +43,33 @@ Clone the repository with `git clone` into `/home/admin/advlabdb`. Then `cd` int
cd ~/advlabdb cd ~/advlabdb
---- ----
Change server_name in `advlabdb/scripts/setup/advlabdb.conf` to your SERVER_NAME. [source,bash]
----
cp advlabdb/scripts/setup/advlabdb.conf.template advlabdb/scripts/setup/advlabdb.conf
----
Change `server_name` in `advlabdb/scripts/setup/advlabdb.conf` to your SERVER_NAME.
[source,bash]
----
cp .env.template .env
----
Generate secrets for `.env`:
[source,bash]
----
python3 advlabdb/scripts/setup/generate_secrets.py
----
Fill the secrets generated using the last script into `.env`.
Enter your SERVER_NAME in `.env`.
Run the following: Run the following:
[source,bash] [source,bash]
---- ----
# Run server setup script # Run server setup script
cd ~/advlabdb
python3 advlabdb/scripts/setup/server_setup.py python3 advlabdb/scripts/setup/server_setup.py
---- ----