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

Merge pull request #45 from maniackcrudelis/path_install

Allow path installation
This commit is contained in:
Éric Gaspar 2023-03-26 16:19:41 +02:00 committed by GitHub
commit b2d9849698
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"