mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 15:58:32 +01:00
20 lines
379 B
Plaintext
20 lines
379 B
Plaintext
server {
|
|
listen 5053;
|
|
|
|
access_log off;
|
|
gzip off;
|
|
default_type text/plain;
|
|
|
|
if ($remote_addr ~* 172\.16\.1\.(.+)){
|
|
return 200 "$remote_addr (This is a local VPN ip, it is NOT your true external ip!)";
|
|
}
|
|
|
|
if ($remote_addr ~* 192\.168\.122\.1){
|
|
return 200 $http_x_real_ip;
|
|
}
|
|
|
|
location / {
|
|
return 200 $remote_addr;
|
|
}
|
|
}
|