~cdv/chris.vittal.dev

ref: 73f20d5207e8a280f04cd2d7e41ace111d7c0f52 chris.vittal.dev/nginx.conf -rw-r--r-- 687 bytes View raw
73f20d52Chris Vittal Update build 8 months ago
                                                                                
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
29
server {
    listen       443 ssl http2;
    listen       [::]:443 ssl http2;
    server_name  chris.vittal.dev;
    # server specific config goes here
    include /etc/nginx/conf/chris.vittal.dev.conf;

    charset utf-8;

    #access_log  logs/host.access.log  main;

    location / {
        index  index.html index.htm;
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

    location ~* \.(?:jpg|jpeg|png|gif|ico|css|js)$ {
        expires 1y;
        add_header Cache-Control "public";
    }
}