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:
parent
824d1f1493
commit
7959754767
2 changed files with 4 additions and 14 deletions
|
@ -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__;
|
||||
}
|
|
@ -56,7 +56,6 @@ ram.runtime = "50M"
|
|||
[resources.data_dir]
|
||||
|
||||
[resources.ports]
|
||||
websocket.default = 3012
|
||||
rocket.default = 8095
|
||||
|
||||
[resources.permissions]
|
||||
|
|
Loading…
Reference in a new issue