location /ip {
default_type text/plain;
return 200 $remote_addr;
}
location /json_ip {
default_type application/json;
return 200 "{\"ip\":\"$remote_addr\"}";
}
原文地址:https://www.cnblogs.com/toumingbai/p/12240614.html
时间: 2024-10-17 17:10:42