The committed .conf files were stale pre-certbot templates that no longer matched what's actually running on gg1-roc-web1 (certbot --nginx had rewritten 40k-rankings/aos-rankings/kingmaker's structure, and in the process 40k-rankings and aos-rankings lost their security headers entirely). Replaced each with the true live config, plus the new location /images/ and location = /footer.html alias blocks that were applied directly on the server. Also fixed on gg1-roc-web1 while there (not reflected in this repo, just noting for the record): - kingmaker's TLS cert had expired 2026-08-26; renewed. - certbot-renew.timer was enabled but never started (box hasn't rebooted in 172 days), so nothing was auto-renewing; started it and ran a full certbot renew, which also caught 40k-rankings/aos-rankings sitting inside their renewal window. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SBzcNkW7JcYipnAX6HfgmK
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
server {
|
|
server_name aos-rankings.gateway-gamers.net;
|
|
|
|
root /var/www/domains/gateway-gamers.net/aos-rankings;
|
|
index index.html;
|
|
|
|
server_tokens off;
|
|
|
|
location /images/ {
|
|
alias /var/www/domains/gateway-gamers.net/shared/images/;
|
|
}
|
|
|
|
location = /footer.html {
|
|
alias /var/www/domains/gateway-gamers.net/shared/footer.html;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
listen [::]:443 ssl; # managed by Certbot
|
|
listen 443 ssl; # managed by Certbot
|
|
ssl_certificate /etc/letsencrypt/live/aos-rankings.gateway-gamers.net/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/aos-rankings.gateway-gamers.net/privkey.pem; # managed by Certbot
|
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
|
|
|
}
|
|
server {
|
|
if ($host = aos-rankings.gateway-gamers.net) {
|
|
return 301 https://$host$request_uri;
|
|
} # managed by Certbot
|
|
|
|
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name aos-rankings.gateway-gamers.net;
|
|
return 404; # managed by Certbot
|
|
|
|
|
|
} |