mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #886] How do I automatically redirect http to https? #748
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#748
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sylvesterroos on GitHub (Feb 10, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/886
In my example, I have a Bitwarden vault located at example.duckdns.org. If I approach this by https://www.example.duckdns.org then everything is fine. However, I can also approach it by manually typing http://www.example.duckdns.org, which will bring me to the unsecured version of the website, which is not what I want. How do I automatically redirect the http request to https? I looked at the advanced tab and saw a variable called $forward_scheme, but I'm not quite proficient in Nginx yet.
@lieven121 commented on GitHub (Feb 11, 2021):
Have you tried forcing ssl ?

@sylvesterroos commented on GitHub (Feb 11, 2021):
I swear I clicked that button when generating the certificate, but double-checking shows it was disabled. Thanks a bunch, it did the trick!
@huangwb8 commented on GitHub (Apr 10, 2022):
@Pistrie How do you interact NPM with Bitwarden? The tutorial is rare in the internet.
Would you please demonstrate your installion strategy? Thanks!
@sylvesterroos commented on GitHub (Apr 10, 2022):
I simply make http ip:port of the vaultwarden server available on a specific subdomain, just like any other service. I'm not sure where your confusion comes from.
@huangwb8 commented on GitHub (Apr 10, 2022):
@Pistrie Thanks, I had succeed!
In the begining, I built bitwarden and npm as a service in a special network, and I found it difficult to set up nginx setting. Afterwards, I just use my default npm to do proxy things, and it works perfect!
Here is the demo that show how I set bitwarden via NPM:
just :
Create a
Proxy host, set DESTINATION ashttp://server.ip:6539. Get abitwarden.exampledomain.comfor https and ssl certificates. If you could not use http challege, please use DNS challege to get Let's Encrypt certificates.Visit:
http://server.ip:6539/adminorhttps://bitwarden.exampledomain.com, useADMIN_TOKENto enter the dashboard.In
General settings, set URL ashttp://server.ip:6539/admin.Set
SMTP Email Settings.In the
Usersection, send inviting email to a user.Done!
@sanderlv commented on GitHub (Nov 9, 2022):
May I ask, my http domain is not forwarded to https although I have ssl force enabled. both are reachable (https via letsencrypt) is forwarded to the http version but http is not sent to https...
@KajKunstheim commented on GitHub (Nov 9, 2022):
I have the same issue. If I request a new certificate the force ssl option gets disabled and I have to enable it after the certificate is created.
@sanderlv commented on GitHub (Nov 9, 2022):
My issue is different I believe. The fore ssl option is enable dan stays enabled. I just recently created the certs (3 days ago). Since I just started to use nginx manager.