diff options
Diffstat (limited to 'files/nginx_conf.j2')
| -rw-r--r-- | files/nginx_conf.j2 | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/files/nginx_conf.j2 b/files/nginx_conf.j2 deleted file mode 100644 index 29cd59d..0000000 --- a/files/nginx_conf.j2 +++ /dev/null @@ -1,59 +0,0 @@ -# SPDX-FileCopyrightText: 2024 Matthew Fennell <matthew@fennell.dev> -# -# SPDX-License-Identifier: AGPL-3.0-or-later - -server { - listen 443 ssl; - listen [::]:443 ssl; - - ssl_certificate /etc/prosody/certs/{{ virtual_host }}.crt; - ssl_certificate_key /etc/prosody/certs/{{ virtual_host }}.key; - - server_name chat.{{ virtual_host }}; - - location / { - proxy_pass https://localhost:5281; - proxy_set_header Host "chat.{{ 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; - } -} - -server { - listen 80; - listen [::]:80; - - server_name chat.{{ virtual_host }}; - - return 301 https://$host$request_uri; -} - -server { - listen 443 ssl; - listen [::]:443 ssl; - - ssl_certificate /etc/prosody/certs/{{ virtual_host }}.crt; - ssl_certificate_key /etc/prosody/certs/{{ virtual_host }}.key; - - server_name {{ virtual_host }}; - - location / { - proxy_pass https://localhost:5281; - proxy_set_header Host "{{ 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; - } -} - -server { - listen 80; - listen [::]:80; - - server_name {{ virtual_host }}; - - return 301 https://$host$request_uri; -} |
