Skip to content

Commit

Permalink
Merge pull request #54 from YunoHost-Apps/master-promotion
Browse files Browse the repository at this point in the history
Upgrade master from testing
  • Loading branch information
ewilly authored Jun 24, 2024
2 parents 75e0f4c + 82b5e05 commit 5e574cd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
35 changes: 24 additions & 11 deletions conf/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
location __PATH__/ {

proxy_pass http://127.0.0.1:__PORT__;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
client_max_body_size 500M;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://127.0.0.1:__PORT__;

# allow large file uploads
client_max_body_size 50G;
client_body_timeout 600s;
client_body_buffer_size 512k;

# Set headers
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
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;
}
3 changes: 0 additions & 3 deletions scripts/remove
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ ynh_remove_logrotate
# Remove the dedicated NGINX config
ynh_remove_nginx_config

# Remove the log files
ynh_secure_remove --file="/var/log/$app"

# Remove database
myynh_drop_psql_db

Expand Down

0 comments on commit 5e574cd

Please sign in to comment.