From 31a3ec56b2a349700c052c3fff2e1b6dfe1f932a Mon Sep 17 00:00:00 2001 From: Viyurz <128215328+Viyurz@users.noreply.github.com> Date: Tue, 13 Feb 2024 19:15:02 +0100 Subject: [PATCH] NGINX: Readd dl.viyurz.fr (with autoindex) & remove Send. --- nginx-rp/reverse-proxy.conf | 35 ++++++++++++----------------------- 1 file changed, 12 insertions(+), 23 deletions(-) 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;