Page MenuHomeVyOS Platform

Option to disable HTTP port 80 redirect
Closed, ResolvedPublicFEATURE REQUEST

Description

By default as seen in vyos-1x/data/templates/https/nginx.default.tmpl nginx listens on port 80 and there is no way to override this.

I am trying to run a container that has a web server on port 80 which is conflicting with the VyOS nginx server.

There should be a configuration option to disable the HTTP redirect.

What I'm thinking is an option such as:

set service https api http-redirect disable

Does an option like this seem reasonable?

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Unspecified (please specify)

Event Timeline

@artooro This sounds reasonable, and I don't imagine a problem, though I have yet to try it; if you would like to submit a pull request with fix, I will review.

Thanks @jestabro this seems like a good place to start learning VyOS internals, will give it a go when I have some off time and submit a pull request.

@artooro Did you try listen-port option for this case?

set service https api gql
set service https api keys id KID key 'foo'
set service https api socket
set service https virtual-host foo listen-port '2580'

Check:

vyos@r14# sudo netstat -tulpn | grep nginx
tcp        0      0 0.0.0.0:2580            0.0.0.0:*               LISTEN      3570/nginx: master  
tcp6       0      0 :::2580                 :::*                    LISTEN      3570/nginx: master  
[edit]
vyos@r14#

There is no redirect anymore

c-po set Issue type to Unspecified (please specify).