3 ms·
You can even have the JSON version: location /json_ip { default_type application/json; return 200 "{\"ip\":\"$remote_addr\"}"; }
by enz 6y ago
You can even have the JSON version:
location /json_ip {
default_type application/json;
return 200 "{\"ip\":\"$remote_addr\"}";
}