my_servers
021modified | Tuesday 6 May 2025 |
---|
# go.apiberg.icu
# hole.go.apiberg.icu
# sum.go.apiberg.icu
server {
listen 127.0.0.1:1235;
server_name go.apiberg.icu;
add_header content-type text/plain;
return 200 "yes, it works.\nit's Go Programming Language Support Server.";
}
server {
listen 127.0.0.1:1236;
server_name hole.go.apiberg.icu;
location = / {
add_header content-type text/plain;
return 200 "yes, it works.\nit's Go Hole Server.";
}
location ~ / {
proxy_set_header Host proxy.golang.org;
proxy_pass https://proxy.golang.org;
}
}
server {
listen 127.0.0.1:1237;
server_name sum.go.apiberg.icu;
location = / {
add_header content-type text/plain;
return 200 "yes, it works.\nit's Go Sum Server.";
}
location ~ / {
proxy_set_header Host sum.golang.org;
proxy_pass https://sum.golang.org;
}
}