24 lines
484 B
Text
24 lines
484 B
Text
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
server_name _;
|
|
|
|
root /home/clay/Projects/git/fluxer-website;
|
|
index index.html;
|
|
|
|
error_page 404 /404.html;
|
|
|
|
location = /404.html {
|
|
internal;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
location ~* \.(?:css|js|svg|png|jpg|jpeg|gif|ico|webp)$ {
|
|
expires 1h;
|
|
add_header Cache-Control "public, max-age=3600";
|
|
try_files $uri =404;
|
|
}
|
|
}
|