diff --git a/nginx/domains/broker.ffmuc.net.conf b/nginx/domains/broker.ffmuc.net.conf index a1283c3..498935d 100644 --- a/nginx/domains/broker.ffmuc.net.conf +++ b/nginx/domains/broker.ffmuc.net.conf @@ -6,11 +6,6 @@ upstream wgkex_backend { keepalive 32; } -upstream wgkex_ffdon_backend { - server broker.ov.ffmuc.net:5001; - keepalive 32; -} - server { listen 80; listen [::]:80; @@ -43,36 +38,3 @@ server { access_log /var/log/nginx/{{ domain }}_access.log json_normal; error_log /var/log/nginx/{{ domain }}_error.log; } - -server { - listen 80; - listen [::]:80; - listen 443 ssl http2; - listen [::]:443 ssl http2; - server_name ffdon.broker.ffmuc.net; - - root /srv/www/{{ domain }}; - - location /api { - proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Frame-Options SAMEORIGIN; - - proxy_http_version 1.1; - proxy_pass http://wgkex_ffdon_backend; - } - - location / { - if ($scheme = http) { - rewrite ^ https://$host$uri permanent; - } - } - - ssl_certificate /etc/letsencrypt/live/ffmuc.net/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/ffmuc.net/privkey.pem; - - access_log /var/log/nginx/{{ domain }}_access.log json_normal; - error_log /var/log/nginx/{{ domain }}_error.log; -}