diff --git a/conf/nginx.conf b/conf/nginx.conf index 061375b..ac71459 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,7 +1,7 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__/ { - proxy_pass http://127.0.0.1:__PORT__; + proxy_pass http://127.0.0.1:__PORT__/; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; diff --git a/conf/systemd.service b/conf/systemd.service index 616c04c..d12e7de 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -13,6 +13,7 @@ Environment=NODE_ENV=production Environment=TRILIUM_ENV=dev WorkingDirectory=__INSTALL_DIR__/ ExecStart=__YNH_NODE__ __INSTALL_DIR__/src/www +Restart=always # Sandboxing options to harden security diff --git a/manifest.toml b/manifest.toml index b085bae..e470883 100644 --- a/manifest.toml +++ b/manifest.toml @@ -29,7 +29,10 @@ ram.runtime = "110M" [install] [install.domain] type = "domain" - full_domain = true + + [install.path] + type = "path" + default = "/trilium" [install.init_main_permission] help.en = "Enabling visitors access is required for sync with desktop app"