barnacs / compy

HTTP/HTTPS compression proxy
ISC License
204 stars 34 forks source link

Enhancement request: local http/https port change option #31

Open ignaciovidalfranco opened 6 years ago

ignaciovidalfranco commented 6 years ago

I'm running compy on my LAN machine, which also hosts a website with nginx via HTTP and HTTPS. If I try to access compy's local webpage where the total savings are displayed, nginx interferes with compy and nothing is displayed.

I guess an option to change the port where the proxy is listinening to HTTP/S connections would be the solution.

Just my two cents.

gaul commented 6 years ago

You can configure the port via -host :1234. Does this address your issue?

ignaciovidalfranco commented 6 years ago

If I do -host :1234, compy changes the port of the proxy. I mean to change the port of the local server that serves the HTML status page inbuilt in the code. See this function: https://github.com/barnacs/compy/blob/395220b94731045436b52eb65a96a3c207ec5f76/proxy/proxy.go#L151