etc-configs/nginx/sites-available/logs.spanix.xyz.conf

32 lines
906 B
Text
Executable file

server {
access_log /var/log/nginx/logs.spanix.access.log combined;
server_name logs.spanix.team;
include configs/general.conf;
include configs/securityheaders.conf;
location / {
proxy_pass http://127.0.0.1:40004;
include configs/proxy.conf;
}
listen 443 ssl http2; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/logs.spanix.team/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/logs.spanix.team/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 = logs.spanix.team) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name logs.spanix.team;
return 404; # managed by Certbot
}