# Authelia — auth.swave.lol # Add this server block to /var/nginx/conf/nginx.conf # Also add auth.swave.lol to the HTTP redirect block's server_name list. server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name auth.swave.lol; server_tokens off; ssl_certificate /var/letsencrypt/etc/live/swave.lol/fullchain.pem; ssl_certificate_key /var/letsencrypt/etc/live/swave.lol/privkey.pem; ssl_buffer_size 8k; ssl_dhparam /etc/ssl/certs/dhparam-2048.pem; ssl_protocols TLSv1.2 TLSv1.3; ssl_prefer_server_ciphers on; ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384; ssl_ecdh_curve secp384r1; ssl_session_tickets off; # OCSP stapling ssl_stapling on; ssl_stapling_verify on; resolver 8.8.8.8; charset utf-8; location / { proxy_pass http://authelia:9091; proxy_set_header Host $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; # Required for Authelia to construct correct redirect URLs proxy_set_header X-Forwarded-Host $http_host; } }