Compare commits

...

2 Commits

Author SHA1 Message Date
751d0c1d97 Newline after response 2020-10-18 16:02:48 +02:00
496725662d Don't force SSL to get IP. More convenient for curl 2020-10-18 16:01:47 +02:00

View File

@ -2,7 +2,7 @@ server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
server_name ip.clerie.de ip4.clerie.de ip6.clerie.de; server_name ip.clerie.de;
return 301 https://$host$request_uri; return 301 https://$host$request_uri;
} }
@ -66,6 +66,8 @@ server {
} }
server { server {
listen 80;
listen [::]:80;
listen [::]:443 ssl; listen [::]:443 ssl;
listen 443 ssl; listen 443 ssl;
@ -79,6 +81,6 @@ server {
location / { location / {
add_header Content-Type text/plain; add_header Content-Type text/plain;
add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Origin *;
return 200 $remote_addr; return 200 '$remote_addr\n';
} }
} }