neb/servers/kid/docker-compose.d/custom/nginx/conf.d/cryptpad.conf

47 lines
1.2 KiB
Text
Raw Normal View History

2023-10-22 16:51:58 +02:00
server {
listen 80;
2023-11-03 13:08:24 +01:00
server_name pad.ixvd.net;
2023-11-10 21:31:16 +01:00
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;
}
2023-11-03 13:08:24 +01:00
location / {
2023-11-10 21:31:16 +01:00
proxy_set_header Host $host;
2023-11-03 13:08:24 +01:00
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://cryptpad;
}
}
server {
listen 80;
server_name sandbox.pad.ixvd.net;
2023-10-22 16:51:58 +02:00
2023-11-10 21:31:16 +01:00
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;
}
2023-10-22 16:51:58 +02:00
location / {
2023-11-10 21:31:16 +01:00
proxy_set_header Host $host;
2023-10-22 16:51:58 +02:00
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://cryptpad;
}
}