From 5e24f9ce04671cd871695d1e06af44d7ad5af35f Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 15 Mar 2024 09:54:36 +0100 Subject: [PATCH] update docs --- README.md | 22 ++++++++++++++++++++++ rot.service | 7 +++++-- rotstaging.service | 6 ++++-- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4e61b4d..de2636d 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,25 @@ - Rust: `cargo check` - Tera files: `djlint **.html.tera --profile=jinja --reformat` - Typescript: `prettier -w *.ts` + +# Dependencies +- `sqlite3` +- `rust` + +# Nginx config + +``` +server { + server_name staging.rudernlinz.at; + location / { + proxy_pass http://localhost:7999/; # The / is important! + } +} + +server { + server_name app.rudernlinz.at; + location / { + proxy_pass http://localhost:8001/; # The / is important! + } +} +``` diff --git a/rot.service b/rot.service index b0f3632..bdb2d95 100644 --- a/rot.service +++ b/rot.service @@ -4,12 +4,15 @@ Description=Rot [Service] User=root Group=root -WorkingDirectory=/home/philipp/rowing +WorkingDirectory=/home/rowing Environment="ROCKET_ENV=prod" Environment="ROCKET_ADDRESS=127.0.0.1" Environment="ROCKET_PORT=8001" Environment="RUST_LOG=info" -ExecStart=/home/k004373/rowing/rot +ExecStart=/home/rowing/rot +Restart=always +RestartSec=10 + [Install] WantedBy=multi-user.target diff --git a/rotstaging.service b/rotstaging.service index ed6ee20..5a76e86 100644 --- a/rotstaging.service +++ b/rotstaging.service @@ -4,12 +4,14 @@ Description=Rot Staging [Service] User=root Group=root -WorkingDirectory=/home/philipp/rowing-staging +WorkingDirectory=/home/rowing-staging Environment="ROCKET_ENV=prod" Environment="ROCKET_ADDRESS=127.0.0.1" Environment="ROCKET_PORT=7999" Environment="ROCKET_LOG=info" -ExecStart=/home/philipp/rowing-staging/rot +ExecStart=/home/rowing-staging/rot +Restart=always +RestartSec=10 [Install] WantedBy=multi-user.target -- 2.45.2