tobychui / zoraxy

A general purpose HTTP reverse proxy and forwarding tool. Now written in Go!
https://zoraxy.aroz.org
GNU Affero General Public License v3.0
3.05k stars 184 forks source link

[HELP] Set up zoraxy as a Windows Service #337

Open FlattusBlastus opened 1 month ago

FlattusBlastus commented 1 month ago

New-Service -Name "Zoraxy" -DisplayName "Zoraxy Reverse Proxy" -Description "Zoraxy URL https://zoraxy.aroz.org" -StartupType Automatic -BinaryPathName "C:\zoraxy\zoraxy_windows_amd64.exe --service"

The service does not start.

FlattusBlastus commented 1 month ago

It also doesnt work as a startup task. I can't use Zoraxy in its present state. The cmd window needs to be minimzed to tray at a bare minimum and be able to be autostarted at boot.

tobychui commented 1 month ago

Hi @FlattusBlastus

Zoraxy is designed for Debian (or other forks of Debian like Ubuntu) Linux and compatible to run on Windows by the magic of cross compilation. We didn't optimize Zoraxy for Windows and that is why there isn't a Windows service mode. Though, you can always put it under the startup folder but the cmd window will get show up on system startup.

FlattusBlastus commented 4 weeks ago

Thank you for your reply and your work, Toby.

As far as actual work goes on Windows, it places Zoraxy as a mere tech demo rather than an actual serious tool. What a lost opportunity! There just aren't any competitors at this level on Windows for a reverse proxy. While in Linux, I can't see any serious adoption where there are several already well established heavy hitting options out there.

I would encourage you to change your mind as I thought there was tons of merit here with Zoraxy.

tobychui commented 3 weeks ago

@FlattusBlastus Well making Zoraxy a native Windows service will take too much work. But I guess you can try convert it to a Window service using tools like the nssm.

See here for more information.