mirror of
https://github.com/YunoHost-Apps/penpot_ynh.git
synced 2024-09-03 19:56:56 +02:00
Use full domain.
This commit is contained in:
parent
455d532fa8
commit
bd961f4b4b
4 changed files with 13 additions and 18 deletions
|
@ -22,6 +22,6 @@ export PENPOT_SMTP_TLS=true
|
|||
export PENPOT_ASSETS_STORAGE_BACKEND=assets-fs
|
||||
export PENPOT_STORAGE_ASSETS_FS_DIRECTORY=__DATA_DIR__/assets
|
||||
export PENPOT_SECRET_KEY=__SECRET_KEY__
|
||||
export PENPOT_PUBLIC_URI=https://__DOMAIN____PATH__
|
||||
export PENPOT_PUBLIC_URI=https://__DOMAIN__
|
||||
export PENPOT_REDIS_URI=redis://127.0.0.1:6379:__REDIS_DB__
|
||||
export PENPOT_TELEMETRY_ENABLED=false
|
|
@ -9,12 +9,11 @@ User=__APP__
|
|||
Group=__APP__
|
||||
|
||||
WorkingDirectory=__INSTALL_DIR__/exporter
|
||||
WorkingDirectory=__INSTALL_DIR__/
|
||||
ExecStart=__YNH_NODE__ app.js --http-server-port=__PORT__
|
||||
Restart=always
|
||||
Environment=__YNH_NODE_LOAD_PATH__
|
||||
Environment=NODE_ENV=production
|
||||
Environment=PENPOT_PUBLIC_URI=https://__DOMAIN____PATH__
|
||||
Environment=PENPOT_PUBLIC_URI=https://__DOMAIN__
|
||||
Environment=PENPOT_REDIS_URI=redis://127.0.0.1:6379:__REDIS_DB__
|
||||
StandardOutput=append:/var/log/__APP__/__APP__-exporter.log
|
||||
StandardError=inherit
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||
location __PATH__/assets {
|
||||
#sub_path_only rewrite ^$ / permanent;
|
||||
location /assets {
|
||||
proxy_pass http://127.0.0.1:__PORT__/assets;
|
||||
recursive_error_pages on;
|
||||
proxy_intercept_errors on;
|
||||
error_page 301 302 307 = @handle_redirect;
|
||||
}
|
||||
|
||||
location __PATH__/internal/gfonts/css {
|
||||
location /internal/gfonts/css {
|
||||
proxy_pass https://fonts.googleapis.com/css?$args;
|
||||
proxy_hide_header Access-Control-Allow-Origin;
|
||||
proxy_hide_header Cross-Origin-Resource-Policy;
|
||||
|
@ -26,27 +26,27 @@ location __PATH__/internal/gfonts/css {
|
|||
add_header X-Cache-Status $upstream_cache_status;
|
||||
}
|
||||
|
||||
location __PATH__/internal/assets {
|
||||
location /internal/assets {
|
||||
internal;
|
||||
alias __DATA_DIR__/assets;
|
||||
add_header x-internal-redirect "$upstream_http_x_accel_redirect";
|
||||
}
|
||||
|
||||
location __PATH__/api/export {
|
||||
location /api/export {
|
||||
proxy_pass http://127.0.0.1:__PORT_EXPORTER__;
|
||||
}
|
||||
|
||||
location __PATH__/api {
|
||||
location /api {
|
||||
proxy_pass http://127.0.0.1:__PORT__/api;
|
||||
}
|
||||
|
||||
location __PATH__/ws/notifications {
|
||||
location /ws/notifications {
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_pass http://127.0.0.1:__PORT__/ws/notifications;
|
||||
}
|
||||
|
||||
location __PATH__/ {
|
||||
location / {
|
||||
location ~ ^/internal/gfonts/font/(?<font_file>.+) {
|
||||
proxy_pass https://fonts.gstatic.com/s/$font_file;
|
||||
|
||||
|
@ -65,7 +65,7 @@ location __PATH__/ {
|
|||
proxy_set_header Host "fonts.gstatic.com";
|
||||
proxy_set_header Accept "*/*";
|
||||
|
||||
proxy_cache penpot;
|
||||
# proxy_cache penpot;
|
||||
|
||||
add_header Access-Control-Allow-Origin $http_origin;
|
||||
add_header Cache-Control max-age=86400;
|
||||
|
@ -84,9 +84,9 @@ location __PATH__/ {
|
|||
}
|
||||
|
||||
location ~ ^/[^/]+/(.*)$ {
|
||||
return 301 " __PATH__/404";
|
||||
return 301 " /404";
|
||||
}
|
||||
|
||||
root __INSTALL_DIR/frontend/;
|
||||
root __INSTALL_DIR__/frontend/;
|
||||
try_files $uri /index.html$is_args$args =404;
|
||||
}
|
|
@ -33,10 +33,6 @@ ram.runtime = "50M"
|
|||
[install.domain]
|
||||
type = "domain"
|
||||
|
||||
[install.path]
|
||||
type = "path"
|
||||
default = "/penpot"
|
||||
|
||||
[install.init_main_permission]
|
||||
type = "group"
|
||||
default = "visitors"
|
||||
|
|
Loading…
Add table
Reference in a new issue