fix: ws for cryptpad
This commit is contained in:
parent
321c5c22d7
commit
876d6cab2f
1 changed files with 28 additions and 2 deletions
|
@ -2,8 +2,21 @@ server {
|
|||
listen 80;
|
||||
server_name pad.ixvd.net;
|
||||
|
||||
location ^~ /cryptpad_websocket {
|
||||
proxy_pass http://cryptpad;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
# WebSocket support (nginx 1.4)
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection upgrade;
|
||||
}
|
||||
|
||||
|
||||
location / {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_pass http://cryptpad;
|
||||
}
|
||||
|
@ -13,8 +26,21 @@ server {
|
|||
listen 80;
|
||||
server_name sandbox.pad.ixvd.net;
|
||||
|
||||
location ^~ /cryptpad_websocket {
|
||||
proxy_pass http://cryptpad;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
# WebSocket support (nginx 1.4)
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection upgrade;
|
||||
}
|
||||
|
||||
|
||||
location / {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_pass http://cryptpad;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue