summaryrefslogtreecommitdiff
path: root/roles/ip/files/ip.ilvokhin.com
blob: 2d1513e7f6f0010b6a65dd1cea546d7314078d57 (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
server {
    server_name ip.ilvokhin.com www.ip.ilvokhin.com;

    location / {
        default_type text/plain;
        return 200 $remote_addr\n;
    }

    listen 443 ssl;
    ssl_certificate /etc/letsencrypt/live/ip.ilvokhin.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/ip.ilvokhin.com/privkey.pem;
}

# Do not redirect to https to get a plain output for `curl ip.ilvokhin.com`
# command.
server {
    server_name ip.ilvokhin.com www.ip.ilvokhin.com;

    location / {
        default_type text/plain;
        return 200 $remote_addr\n;
    }

    listen 80;
    listen [::]:80;
}