aboutsummaryrefslogtreecommitdiff
path: root/docker/nginx/chibisafe.moe.https.example.conf
blob: c8b83c257811f2b1862f29e310c8bfdd79b26a1f (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
24
25
26
27
28
29
30
31
32
server {
    listen              443 ssl http2;
    listen              [::]:443 ssl http2;
    server_name         chibisafe.moe;

    # SSL
    ssl_certificate     /etc/nginx/ssl/chibisafe.moe.crt;
    ssl_certificate_key /etc/nginx/ssl/chibisafe.moe.key;

    # security
    include             nginxconfig.io/security.conf;

    # logging
    access_log          /var/log/nginx/chibisafe.moe.access.log;
    error_log           /var/log/nginx/chibisafe.moe.error.log warn;

    # reverse proxy
    location / {
        proxy_pass http://chibisafe:5000;
        include    nginxconfig.io/proxy.conf;
    }

    # additional config
    include nginxconfig.io/general.conf;
}

# HTTP redirect
server {
    listen 80;
    listen [::]:80;
    return 301 https://$server_name$request_uri;
}