The mirror for Zoraxy dev source (ReverseProxy) over hkwtc git
![]() |
10 hours ago | |
---|---|---|
build | 2 weeks ago | |
deprecated | 2 months ago | |
docs | 8 months ago | |
log | 1 year ago | |
mod | 10 hours ago | |
nt61_build | 8 months ago | |
res | 1 year ago | |
system | 8 months ago | |
test | 11 months ago | |
tmp | 9 months ago | |
tools | 1 month ago | |
web | 2 days ago | |
www | 4 days ago | |
.gitignore | 1 year ago | |
LICENSE | 3 years ago | |
Makefile | 7 months ago | |
README.md | 3 years ago | |
accesslist.go | 3 months ago | |
acme.go | 2 days ago | |
api.go | 1 week ago | |
autopush.sh | 1 year ago | |
backup.db | 1 year ago | |
build.bat | 3 years ago | |
build.sh | 3 years ago | |
build_linux.bat | 8 months ago | |
cert.go | 2 months ago | |
config.go | 1 week ago | |
def.go | 2 days ago | |
emails.go | 8 months ago | |
go.mod | 2 days ago | |
go.sum | 2 days ago | |
main.go | 1 month ago | |
redirect.go | 1 week ago | |
reverseproxy.go | 2 days ago | |
router.go | 3 months ago | |
routingrule.go | 9 months ago | |
sh.exe.stackdump | 1 year ago | |
start.go | 1 month ago | |
start.sh | 9 months ago | |
sys.db_backup | 3 months ago | |
sys.uuid | 1 year ago | |
upstreams.go | 2 days ago | |
vdir.go | 7 months ago | |
webssh.go | 3 months ago | |
wrappers.go | 2 months ago | |
zoraxy | 3 months ago |
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