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

HTTPS communication #166

Closed
ToltingColtAcres opened this issue Aug 26, 2018 · 3 comments
Closed

HTTPS communication #166

ToltingColtAcres opened this issue Aug 26, 2018 · 3 comments
Labels
enhancement request for new features question

Comments

@ToltingColtAcres
Copy link

More of a suggestion than an issue.

Can you remove (or comment out)

        HTTPPort = 443

in genserv.py ?

This statement forces genmon to use port 443 for https communications, despite what may be specified as the http port in genmon.conf.

IMO there should be either:

  1. a configuration parameter in genmon.conf, https_port, to allow users to specify which port they would like to have https requests serviced at, as the hard-coded default of 443 may be used by other things (like ngnix, apache, etc.), or

  2. (the more appropriate option, IMO) simply have genmon use whatever the http_port parameter is to listen, regardless of the underlying protocol used (http or https). Since genmon will only communicate either http or https and not both at the same time like Apache, a second https_port parameter is really redundant.

In my installation, I opted to implement #2, and commented out the above line, so now my https requests are serviced at the default port 8000 specified in genmon.conf.

Unfortunately, this "breaks" my local copy from doing a git pull to retrieve updates :(

@jgyates jgyates added enhancement request for new features question labels Aug 26, 2018
@jgyates
Copy link
Owner

jgyates commented Aug 26, 2018

You are correct that the current implementation forces port 443 for HTTPS. I will look into changing this, I just want to make sure the UI logic matches the change and there are no side effects.

@jgyates
Copy link
Owner

jgyates commented Aug 26, 2018

I checked in an update that should address this. I opted to not change the default behavior, but I added a new option in genmon.conf file to make this work as you suggested.

If you add the following to /etc/genmon.conf it will use the port of your choice if HTTPS is selected.

https_port = 1234

Replace '1234' with the port of your choice. If this option is not present then the software will use port 443

@ToltingColtAcres
Copy link
Author

Thanks very much, I'll shelve my mod and re-pull.

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

No branches or pull requests

2 participants