server { listen 80; listen [::]:80; server_name catch-all-for-nginx-wyga-cf; server_name ~^test\d*\.nginx\.wyga\.cf$; location /.well-known { root /var/www/acme; } location / { return https://$host; } } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name catch-all-for-nginx-wyga-cf; server_name ~^test\d*\.nginx\.wyga\.cf$; ssl_certificate /etc/nginx/tls/wyga-ca.pem; ssl_certificate_key /etc/nginx/tls/wyga-ca.key; ssl_protocols TLSv1.2 TLSv1.3; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; ssl_session_timeout 5m; root /var/www/wyga; index index.html; location = /favicon.ico { access_log off; return 204; } location / { try_files $uri $uri/ =404; } }
wtorek, 17 maja 2022
basic nginx config
Subskrybuj:
Komentarze do posta (Atom)
Brak komentarzy:
Prześlij komentarz