Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ignaciovidalfranco opened this issue Dec 12, 2017 · 2 comments
Open

Comments

@ignaciovidalfranco
Copy link

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
Copy link
Collaborator

gaul commented Dec 12, 2017

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

@ignaciovidalfranco
Copy link
Author

ignaciovidalfranco commented Dec 12, 2017

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:

func (p *Proxy) handleLocalRequest(w http.ResponseWriter, r *http.Request) error {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants