cl-deck-builder2/doc/web/nginx/deck-builder
2024-03-05 22:11:33 -05:00

28 lines
432 B
Plaintext

server {
listen [::]:80;
listen 80;
server_name phntsm.ddns.net;
root /var/www/html;
location / {
return 301 https://$host$request_uri;
}
location /.well-known/acme-challenge/ {
alias /var/www/challenges/;
try_files $uri =404;
}
location ~ /\.ht {
deny all;
}
location /nginx_status {
stub_status;
allow 127.0.0.1; #only allow requests from localhost
deny all; #deny all other hosts
}
}