From 9f3226d8e471f570f8c2228135d22184cbf4d62c Mon Sep 17 00:00:00 2001 From: Bastien Lacoste Date: Tue, 5 Apr 2022 19:50:35 +0200 Subject: [PATCH] nginx conf: websocket + UTF-8 --- conf/nginx/etherpad | 54 --------------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 conf/nginx/etherpad diff --git a/conf/nginx/etherpad b/conf/nginx/etherpad deleted file mode 100644 index 5f8a131..0000000 --- a/conf/nginx/etherpad +++ /dev/null @@ -1,54 +0,0 @@ -server { - listen 80; - listen [::]:80; - - server_name pad.chalec.org; - root /var/www/html; - - # rewrite ^/(.*)$ https://pad.chalec.org/$1 permanent; - - -} - -server { - set_real_ip_from 192.168.1.1; - real_ip_header proxy_protocol; - add_header Strict-Transport-Security "max-age=31536000" always; - - listen [::]:443 ssl default_server; - listen 443 proxy_protocol ssl default_server; - - server_name pad.chalec.org; - - access_log /var/log/nginx/pad.chalec.org/access.log; - error_log /var/log/nginx/pad.chalec.org/error.log warn; - - - - include snippets/letsencrypt.conf; - - root /var/www/html; - - location /.well-known/statoolinfos { - alias /var/www/html/.well-known/statoolinfos/; - autoindex on; - } - - location / { - #proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_pass http://127.0.0.1:9001; - proxy_buffering off; - # WebSocket proxying - from https://nginx.org/en/docs/http/websocket.html - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection $connection_upgrade; - } - - ssi on; - ssi_last_modified on; - - -} - - -