From 94e6f1dc6387c5d2ba30a2fd28f39ea9b06b9889 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Wed, 15 Mar 2023 11:37:05 +0100 Subject: [PATCH] Allow path installation --- conf/nginx.conf | 2 +- conf/systemd.service | 1 + manifest.toml | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) 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 f4e1ea0..a06343f 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"