motherfuckingblog/docker/nginx/nginx.conf
Stewart Pidasso c021228161 init
2025-07-07 02:07:58 +00:00

33 lines
802 B
Nginx Configuration File

server {
listen 80;
server_name motherfuckingblog.com;
root /usr/share/nginx/html/prod;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
# Handle Hugo's(Not necessary with Jekyll) pretty URLs
#location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
# expires 1y;
# add_header Cache-Control "public, immutable";
#}
}
server {
listen 80;
server_name dev.motherfuckingblog.com;
root /usr/share/nginx/html/dev;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
# Handle pretty URLs
#location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
# expires 1y;
# add_header Cache-Control "public, immutable";
#}
}