diff --git a/nginx-rp/reverse-proxy.conf b/nginx-rp/reverse-proxy.conf index 3cdd1d1..3e572e9 100644 --- a/nginx-rp/reverse-proxy.conf +++ b/nginx-rp/reverse-proxy.conf @@ -47,6 +47,18 @@ server { } +# Downloads +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name dl.viyurz.fr; + + root /var/www/html; + autoindex on; +} + + # Element server { listen 443 ssl http2; @@ -124,29 +136,6 @@ server { } -# Send -upstream send { - server localhost:1443; -} -server { - listen 443 ssl http2; - listen [::]:443 ssl http2; - - server_name send.viyurz.fr; - - location / { - proxy_pass http://send; - - proxy_ignore_headers X-Accel-Expires Expires Cache-Control; - - # WebSocket - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection $connection_upgrade; - } -} - - # Synapse server { listen 443 ssl http2;