From a4afe4da692f02c286d7d92d74bd0d8b1ec1b54a Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 6 Jul 2025 20:10:56 +0100 Subject: Remove anonymous login support This was originally intended for motoristic, but is no longer needed by any domain. --- files/nginx_conf.j2 | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) (limited to 'files/nginx_conf.j2') diff --git a/files/nginx_conf.j2 b/files/nginx_conf.j2 index 3c38ced..ee4cbbc 100644 --- a/files/nginx_conf.j2 +++ b/files/nginx_conf.j2 @@ -29,54 +29,3 @@ server { return 301 https://$host$request_uri; } - -{% if anonymous_login %} - -server { - listen 443 ssl; - listen [::]:443; - - ssl_certificate /etc/prosody/certs/{{ virtual_host }}.crt; - ssl_certificate_key /etc/prosody/certs/{{ virtual_host }}.key; - - server_name anon.{{ virtual_host }}; - - location / { - proxy_pass https://localhost:5281; - proxy_set_header Host "anon.{{ virtual_host }}"; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_buffering off; - tcp_nodelay on; - } - - location /http-bind { - proxy_pass https://localhost:5281; - proxy_set_header Host "anon.{{ virtual_host }}"; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_buffering off; - tcp_nodelay on; - } - - location /.well-known/host-meta { - add_header Access-Control-Allow-Origin * always; - return 200 " - - - -"; - } -} - -server { - listen 80; - listen [::]:80; - - server_name anon.{{ virtual_host }}; - - return 301 https://$host$request_uri; -} - -{% endif %} -- cgit v1.2.3