you can start using go-reverse-proxy by just downloading latest release and changing some stuff in config.txt
config starts from http, everything must be inside them, otherwise there will be a lot of errors)
http {
....
}
this means you cant use something like
http
{
....
}
- port
- log folder (optional)
- custom_404 (optional)
http
{
port: "8080";
log: "./latest.log";
custom_404: "./404/404.html";
}
(semicolons are optional too)
there are three types of locations:
- static
- proxy
- proxy_load
location(/) {
type: "static";
path: "./static";
}
location(/proxy/) {
type: "proxy";
path: "http://127.0.0.1:12312/";
}
location(/app/) {
type: "proxy_load";
path: ["http://127.0.0.1:12312/", "http://127.0.0.1:12322/"];
}