because I got bored of customising my CV for every job
1server {
2 listen 80;
3 server_name localhost;
4 root /usr/share/nginx/html;
5 index index.html;
6
7 # Handle client-side routing
8 location / {
9 try_files $uri $uri/ /index.html;
10 }
11
12 # Cache static assets
13 location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
14 expires 1y;
15 add_header Cache-Control "public, immutable";
16 }
17
18 # Security headers
19 add_header X-Frame-Options "SAMEORIGIN" always;
20 add_header X-Content-Type-Options "nosniff" always;
21 add_header X-XSS-Protection "1; mode=block" always;
22}