aboutsummaryrefslogtreecommitdiff
path: root/terraform/provision/rootfs/etc/nginx/sites-enabled/www.conf
blob: d3118e6971c000f7fc46cb422b5009f2a4c0f010 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
server {
    server_name www.crashbox.io;
    listen 80;
    listen [::]:80;
    listen 443 ssl;
    listen [::]:443 ssl;
    return 301 https://crashbox.io$request_uri;
}

server {
    server_name crashbox.io;
    listen 80;
    listen [::]:80;
    listen 443 ssl;
    listen [::]:443 ssl;

    root /usr/local/share/www;
    index index.html;

    location / {
        try_files $uri =404;
    }
}