compy icon indicating copy to clipboard operation
compy copied to clipboard

Enhancement request: local http/https port change option

Open ignaciovidalfranco opened this issue 7 years ago • 2 comments

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.

ignaciovidalfranco avatar Dec 12 '17 20:12 ignaciovidalfranco

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

gaul avatar Dec 12 '17 22:12 gaul

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

ignaciovidalfranco avatar Dec 12 '17 23:12 ignaciovidalfranco