mirror of
https://github.com/YunoHost-Apps/immich_ynh.git
synced 2024-09-03 20:36:24 +02:00
Merge pull request #54 from YunoHost-Apps/master-promotion
Upgrade master from testing
This commit is contained in:
commit
5e574cd944
2 changed files with 24 additions and 14 deletions
|
@ -1,14 +1,27 @@
|
||||||
location __PATH__/ {
|
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;
|
# allow large file uploads
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
client_max_body_size 50G;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
client_body_timeout 600s;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
client_body_buffer_size 512k;
|
||||||
proxy_set_header X-Forwarded-Host $server_name;
|
|
||||||
client_max_body_size 500M;
|
# Set headers
|
||||||
proxy_http_version 1.1;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Host $server_name;
|
||||||
|
|
||||||
|
# enable websockets: http://nginx.org/en/docs/http/websocket.html
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_redirect off;
|
||||||
|
|
||||||
|
# set timeout
|
||||||
|
proxy_read_timeout 600s;
|
||||||
|
proxy_send_timeout 600s;
|
||||||
|
send_timeout 600s;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,9 +36,6 @@ ynh_remove_logrotate
|
||||||
# Remove the dedicated NGINX config
|
# Remove the dedicated NGINX config
|
||||||
ynh_remove_nginx_config
|
ynh_remove_nginx_config
|
||||||
|
|
||||||
# Remove the log files
|
|
||||||
ynh_secure_remove --file="/var/log/$app"
|
|
||||||
|
|
||||||
# Remove database
|
# Remove database
|
||||||
myynh_drop_psql_db
|
myynh_drop_psql_db
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue