Change service

This commit is contained in:
Johannes Randerath 2024-08-28 19:56:16 +02:00
parent a2c6f78ea2
commit 011701e15e
5 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@ After=keycloak
[Service]
Type=Simple
WorkingDirectory=/usr/share/nginx/inventur/
ExecStart=/usr/bin/inventur
ExecStart=/usr/local/bin/inventur
User=nginx
Group=nginx
Restart=always

View File

View File

@ -6,3 +6,4 @@ edition = "2021"
[dependencies]
diesel = { version = "2.2.0", features = ["mysql"] }
dotenvy = "0.15"

View File

@ -6,4 +6,4 @@ file = "src/schema.rs"
custom_type_derives = ["diesel::query_builder::QueryId", "Clone"]
[migrations_directory]
dir = "/home/johannes/code/inventur/inventur_db/migrations"
dir = "/opt/inventur/inventur/inventur_db/migrations"

View File

@ -68,7 +68,7 @@ pub async fn login_or_register(conn: Db, access_token: &str) -> Option<inventur_
}
#[catch(401)]
#[catch(403)]
pub async fn redirect_to_login() -> Redirect {
Redirect::to(uri!(oauth_login()))
}