aboutsummaryrefslogtreecommitdiff
path: root/src/static-files/conf
blob: 7cb08073ba2ee79dcc1398ed500fff1de07b1104 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
server {
    listen 8080;
    client_max_body_size 1M;
    keepalive_timeout    15;
    types_hash_max_size 2024;
    root /app;
    location = / {
        # Instead of handling the index, just
        # rewrite / to /index.html
        rewrite ^ /index.html;
    }
    location / {
        # Serve a .gz version if it exists
        gzip_static on;
        # Try to serve the clean url version first
        try_files $uri.html $uri/index.html $uri =404;
    }

    location = /favicon.ico {
        # This never changes, so don't let it expire
        expires max;
    }

    location ^~ /theme {
        # This content should very rarely, if ever, change
        expires 1y;
    }
}