A locally focused bluesky appview
1server {
2 listen 80;
3 server_name localhost;
4 root /usr/share/nginx/html;
5 index index.html;
6
7 # Enable gzip compression
8 gzip on;
9 gzip_vary on;
10 gzip_min_length 1024;
11 gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml+rss application/json application/javascript;
12
13 # Serve static files
14 location / {
15 try_files $uri $uri/ /index.html;
16 }
17
18 # Cache static assets
19 location ~* \.(jpg|jpeg|png|gif|ico|css|js|woff|woff2)$ {
20 expires 1y;
21 add_header Cache-Control "public, immutable";
22 }
23}