The mirror for Zoraxy dev source (ReverseProxy) over hkwtc git
![]() |
9 годин тому | |
---|---|---|
build | 2 тижнів тому | |
deprecated | 2 місяців тому | |
docs | 8 місяців тому | |
log | 1 рік тому | |
mod | 9 годин тому | |
nt61_build | 8 місяців тому | |
res | 1 рік тому | |
system | 8 місяців тому | |
test | 11 місяців тому | |
tmp | 9 місяців тому | |
tools | 1 місяць тому | |
web | 2 днів тому | |
www | 4 днів тому | |
.gitignore | 1 рік тому | |
LICENSE | 3 роки тому | |
Makefile | 7 місяців тому | |
README.md | 3 роки тому | |
accesslist.go | 3 місяців тому | |
acme.go | 2 днів тому | |
api.go | 1 тиждень тому | |
autopush.sh | 1 рік тому | |
backup.db | 1 рік тому | |
build.bat | 3 роки тому | |
build.sh | 3 роки тому | |
build_linux.bat | 8 місяців тому | |
cert.go | 2 місяців тому | |
config.go | 1 тиждень тому | |
def.go | 2 днів тому | |
emails.go | 8 місяців тому | |
go.mod | 2 днів тому | |
go.sum | 2 днів тому | |
main.go | 1 місяць тому | |
redirect.go | 1 тиждень тому | |
reverseproxy.go | 2 днів тому | |
router.go | 3 місяців тому | |
routingrule.go | 9 місяців тому | |
sh.exe.stackdump | 1 рік тому | |
start.go | 1 місяць тому | |
start.sh | 9 місяців тому | |
sys.db_backup | 3 місяців тому | |
sys.uuid | 1 рік тому | |
upstreams.go | 2 днів тому | |
vdir.go | 7 місяців тому | |
webssh.go | 3 місяців тому | |
wrappers.go | 2 місяців тому | |
zoraxy | 3 місяців тому |
Reverse proxy subservice for ArozOS
Git clone this inside the subservice folder of ArozOS, build it and start it up in ArozOS subservice menu.
You can also use it separately as a really basic reverse proxy server that server website based on domain / virtual directories. You can also add another load balancer in front of multiple reverse proxy server nodes if it is necessary in your case.
Requirement: Go 1.16 or above
cd ~/arozos/subservices
git clone {this_repo}
cd ReverseProxy
./build.sh
To start the module, make sure .disabled file does not exists and start arozos system. You should be able to see a new module named "ReverseProxy" pop up in the start menu.
There are two mode in the ReverseProxy Subservice
Vdir mode proxy web request based on the virtual directories given in the request URL. For example, when configured to redirect /example to example.com, any visits to {your_domain}/example will be proxied to example.com.
Subd mode proxy web request based on sub-domain exists in the request URL. For example, when configured to redirect example.localhost to example.com, any visits that includes example.localhost (e.g. example.localhost/page1) will be proxied to example.com (e.g. example.com/page1)
Root proxy is the main proxy destination where if all proxy root name did not match, the request will be proxied to this request. If you are working with ArozOS system in default configuration, you can set this to localhost:8080 for any unknown request to be handled by the host ArozOS system