Mohammed Sohail
11a580630f
build: standalone docker: push all tags deps: update docker image domain: update chore: cleanup
43 lines
878 B
Nginx Configuration File
43 lines
878 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name grassecon.net;
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
root /var/www/certbot;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name grassecon.net;
|
|
|
|
root /var/www/pelican/output;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/grassecon.net/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/grassecon.net/privkey.pem;
|
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
|
|
|
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains" always;
|
|
|
|
location = / {
|
|
rewrite ^ /index.html;
|
|
}
|
|
|
|
location / {
|
|
gzip_static on;
|
|
try_files $uri.htm $uri.html $uri =404;
|
|
}
|
|
|
|
location = /favicon.ico {
|
|
expires max;
|
|
}
|
|
|
|
location ^~ /theme {
|
|
expires 1y;
|
|
}
|
|
} |