blob: 0555c674be40fb593392a9f232f12863a9af13f6 (
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
|
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;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.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;
}
|