question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSL settings are not applied

See original GitHub issue

Describe the bug SSL settings are not applied when creating a new proxy. The cert is indeed generated and HTTPS is supported, however, settings such as Force SSL do not take effect. I found out when I added a new proxy and tried accessing the site. I was not redirected to HTTPS.

I verified I had not forgotten to check toggle the buttons by creating a new site and verified the same issue occurred. I also checked the id.conf file and things such as including the force SSL file were missing.

Opening the Edit dialog and toggling the options gets the desired results.

The version of NPM I use is 2.0.13

This is the conf file when I checked Force SSL, HTTP/2 Support and HSTS Enabled.

server {
  set $forward_scheme http;
  set $server         "127.0.0.1";
  set $port           81;

  listen 80;
listen 443 ssl http2;

  server_name my.test.domain.com;


  # Let's Encrypt SSL
  include conf.d/include/letsencrypt-acme-challenge.conf;
  include conf.d/include/ssl-ciphers.conf;
  ssl_certificate /etc/letsencrypt/live/npm-4/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/npm-4/privkey.pem;

# Asset Caching
  include conf.d/include/assets.conf;

  # Block Exploits
  include conf.d/include/block-exploits.conf;

  access_log /data/logs/proxy_host-4.log proxy;

  location / {
    # Proxy!
    include conf.d/include/proxy.conf;
  }
}

To Reproduce Steps to reproduce the behavior:

  1. Go to ‘Proxy Hosts’
  2. Click on ‘Add proxy host’
  3. Fill out the site information
  4. Go to ‘SSL’ tab
  5. Toggle on Force SSL, HTTP/2 Support, HSTS Enabled

Expected behavior The settings will take effect and the site config will reflect the settings.

Screenshots When I select all those and then go edit the host, the certificate is selected but all the options I checked previously are unchecked image

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:16

github_iconTop GitHub Comments

2reactions
dnvcommented, Feb 4, 2021

is there an update or workaround on this ?

My workaround was migrating to Caddy.

0reactions
jackblkcommented, Mar 23, 2022

Still not fixed, but can be circumvent:

  • Create a new proxy host/redirection
  • Edit the proxy: enable Force SSL
  • Clear browser cache/data (or just open an incognito/private session)

It should be redirected to HTTPS now.

I think this is the same issue with https://github.com/NginxProxyManager/nginx-proxy-manager/issues/516

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is SSL/HTTPS not working on my site? - Support | one.com
There can be several reasons why SSL/HTTPS is not working on your site. Please see if one of the causes listed below helps...
Read more >
8 Ways to Fix SSL Connection Errors on Various Browsers ...
5. How to Fix the SSL Connection Error on Android · Open the Chrome browser and access its Settings menu. · Go to...
Read more >
Page can't be displayed when you connect through SSL
This article provides resolutions for the problem where page can't be displayed when you connect through SSL.
Read more >
SSL settings are not applied · Issue #184 - GitHub
Steps to reproduce the behavior: Go to 'Proxy Hosts'; Click on 'Add proxy host'; Fill out the site information; Go to 'SSL' tab;...
Read more >
IIS SSL Is Not Functioning Properly - Stack Overflow
I've fiddled with the "SSL Settings" menu of my web application. If I check "Require SSL" with leaving "Accept" selected and if I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found