1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/vaultwarden_ynh.git synced 2024-09-03 18:26:31 +02:00

update nginx conf, remove websocket port

This commit is contained in:
Kayou 2024-07-16 15:54:01 +02:00 committed by GitHub
parent 824d1f1493
commit 7959754767
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 14 deletions

View file

@ -7,22 +7,13 @@ location __PATH__/ {
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
client_max_body_size 100M;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
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_pass http://127.0.0.1:__PORT_ROCKET__;
}
location __INSTALL_DIR__/notifications/hub {
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 Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://127.0.0.1:__PORT_WEBSOCKET__;
}
location __INSTALL_DIR__/notifications/hub/negotiate {
proxy_pass http://127.0.0.1:__PORT_ROCKET__;
}

View file

@ -56,7 +56,6 @@ ram.runtime = "50M"
[resources.data_dir]
[resources.ports]
websocket.default = 3012
rocket.default = 8095
[resources.permissions]