File: /var/lib/letsencrypt/backups/1764250389.1003082/affstore_3
server {
server_name affstore.foach.site;
root /var/www/affstore-landing/build;
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
index index.html
error_page 404 /404.html;
location / {
root /var/www/affstore-landing/build;
auth_basic "Unauthorized";
auth_basic_user_file /var/www/.htpasswd;
try_files $uri $uri/ /404.html;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/affstore.foach.site/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/affstore.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 = affstore.foach.site) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name affstore.foach.site;
listen 80;
return 404; # managed by Certbot
}