# -*- Nginx -*- # {{ ansible_managed }} server { listen 80; listen [::]:80; server_name cosmos.party www.cosmos.party git.cosmos.party lists.cosmos.party andr.cosmos.party; location ^~ /.well-known/acme-challenge/ { root /var/www/acme; } location / { return 307 https://$host$request_uri; } } server { server_name cosmos.party www.cosmos.party; listen unix:/var/run/nginx/http.sock; listen 443 ssl; listen [::]:443 ssl; listen 443 quic; listen [::]:443 quic; http2 on; http3 on; add_header Alt-Svc 'h3=":443"; ma=86400'; ssl_certificate /etc/ssl/cosmos.party.fullchain.pem; ssl_certificate_key /etc/ssl/private/cosmos.party.key; ssl_protocols TLSv1.2 TLSv1.3; root /srv/http/cosmos.party; index index.html; location /en/ { try_files $uri $uri/ =404; } location /ru/ { try_files $uri $uri/ =404; } location /sk/ { try_files $uri $uri/ =404; } location / { try_files $uri /en$uri /en$uri/ =404; } } server { server_name andr.cosmos.party; listen unix:/var/run/nginx/http.sock; listen 443 ssl; listen [::]:443 ssl; listen 443 quic; listen [::]:443 quic; http2 on; http3 on; ssl_certificate /etc/ssl/cosmos.party.fullchain.pem; ssl_certificate_key /etc/ssl/private/cosmos.party.key; ssl_protocols TLSv1.2 TLSv1.3; add_header Alt-Svc 'h3=":443"; ma=86400'; root /srv/http/$host; autoindex on; }