'force HTTPS' switch not recognized when creating new (proxy) host
Checklist
- Have you pulled and found the error with
jc21/nginx-proxy-manager:latestdocker image?- No, but creator of other image confirmed that issue should be an upstream issue
- Are you sure you're not using someone else's docker image?
- No, using other image, but issue seems to be upstream issue
- Have you searched for similar issues (both open and closed)?
- Yes
Describe the bug When creating new (proxy, haven't tested others) host and you turn on the 'force HTTPS' switch, this setting will not be stored. You need to re-enable it manually by doing "edit" on the same host afterwards. Only then the activation of this switch is actually doing something!
Nginx Proxy Manager Version 2.11.1
To Reproduce Steps to reproduce the behavior:
- press 'add proxy host'
- fill in the details and switch to the 'TLS' tab
- set the cert or set to 'request a new TLS certificate', then TURN ON the 'force HTTPS' button
- save and wait until you have new host created
- go to 'edit' for this newly created host
- go to TLS tab and see that the 'force HTTPS' button is NOT active
Expected behavior when turning on any of the options switches while creating a new host, I'd expect it 'to do something' and not being ignored. For newbie users it may be dangerous because they may rely on the switch to behave as expected and never check the settings again after the initial creation.
Screenshots
Operating System Ubuntu 22.04
Additional context i was told from a fork user that it may be related to this: https://github.com/NginxProxyManager/nginx-proxy-manager/blob/79cd0c5294f1e3ad4cc9ed5187b7759808b91162/backend/internal/host.js#L22 as this is also called for new hosts and therefore the ssl_forced is always set to 'false'!?
I have found the same issue. This has been fine on older versions, as I'm not adding new entries all the time I just found this now.
happening to me as well
Issue is now considered stale. If you want to keep it open, please comment :+1: