Support different client and server ports
See original GitHub issueThis is related to https://github.com/lydell/elm-watch/issues/39 which solved my problem for SSL hand off being done by an external server (An nginx
Ingress in Kubernetes in this case).
I was able to have elm-watch
listening on port 443
(but serving HTTP not HTTPS) as this port was not being used by anything else as the nginx
was running elsewhere.
However, in another use case I have, I am running everything on my laptop - I use a local haproxy
to do the SSL handoff. This of course must listen on port 443
thus not allowing elm-watch
to also listen on this port.
Therefore I would really like to be able to configure the elm-watch
client port to be 443
but set the server port to something else. In haproxy
I would then rewrite /elm-watch
to the server port.
I know that you are not keen on extra configuration options, so perhaps this could be done via an environment variable either to change the client port or the server port?
Issue Analytics
- State:
- Created a year ago
- Comments:8 (8 by maintainers)
Top GitHub Comments
This works great - thanks for the tip!
Yes, this would be perfect.
In fact HAProxy doesn’t concatenate them - it just expects all the files in the same folder.
Just some extra info for anyone else using a setup with HAProxy: To prevent
elm-watch
from frequently reloading, you will need to add something like this to your HAProxy config in thebackend
section forelm-watch