1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/trilium_ynh.git synced 2024-10-01 13:34:49 +02:00

Allow path installation

This commit is contained in:
Maniack Crudelis 2023-03-15 11:37:05 +01:00
parent a590f86da4
commit 94e6f1dc63
3 changed files with 6 additions and 2 deletions

View file

@ -1,7 +1,7 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ { location __PATH__/ {
proxy_pass http://127.0.0.1:__PORT__; proxy_pass http://127.0.0.1:__PORT__/;
proxy_redirect off; proxy_redirect off;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;

View file

@ -13,6 +13,7 @@ Environment=NODE_ENV=production
Environment=TRILIUM_ENV=dev Environment=TRILIUM_ENV=dev
WorkingDirectory=__INSTALL_DIR__/ WorkingDirectory=__INSTALL_DIR__/
ExecStart=__YNH_NODE__ __INSTALL_DIR__/src/www ExecStart=__YNH_NODE__ __INSTALL_DIR__/src/www
Restart=always
# Sandboxing options to harden security # Sandboxing options to harden security

View file

@ -29,7 +29,10 @@ ram.runtime = "110M"
[install] [install]
[install.domain] [install.domain]
type = "domain" type = "domain"
full_domain = true
[install.path]
type = "path"
default = "/trilium"
[install.init_main_permission] [install.init_main_permission]
help.en = "Enabling visitors access is required for sync with desktop app" help.en = "Enabling visitors access is required for sync with desktop app"