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:
parent
a590f86da4
commit
94e6f1dc63
3 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue