File: /var/lib/letsencrypt/backups/1755081093.6302326/exnie-front_11
server {
server_name s.exnie.foach.site;
root /var/www/exnie/frontend/build;
index index.html;
client_max_body_size 20M;
charset utf-8;
location / {
# auth_basic "Unauthorized";
# auth_basic_user_file /var/www/.htpasswd;
root /var/www/exnie/frontend/build;
try_files $uri $uri/ /index.html;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /404.html;
location ~ /\.(?!well-known).* {
deny all;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/s.exnie.foach.site/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/s.exnie.foach.site/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 = s.exnie.foach.site) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name s.exnie.foach.site;
listen 80;
return 404; # managed by Certbot
}