HTTP to HTTP configuration problem

[ x ] I have read intro post: About the Installation Issues category
[ x ] I have read the tutorials, help and searched for similar issues
[ x ] I provide relevant information about my server (component names and versions, etc.)
[ x ] I provide a copy of my logs and healthcheck
[ x ] I describe the steps I have taken to trouble shoot the problem
[ x ] I describe the steps on how to reproduce the issue


I have a question about redirecting from HTTP to HTTPS.
If I’m using it works correctly but if I type in browser “”
it does not redirect to HTTPS.

Domain and certificate:

  • I have my own certificate and domain.

Passbolt version and environment:

  • Docker container
  • Version: 3.2.1-2-ce-non-root

What I’ve done:

  • Installed Passbolt docker image
  • In the folder /etc/ssl/certs I’ve copied my certificate and key
  • Restart the docker container

Probably this is a configuration issue (from my side) but I cannot found any answers on how to configure it properly.

So, my questions are:

  1. Where passbolt stores configuration for nginx inside the docker container?
  2. Do I have to change ngxinx configuration to be able to redirect from HTTP to HTTPS?

Also, I’ve tried to use this: Passbolt Help | Manual HTTPS configuration on Debian and Ubuntu with user provided certificates
but it does not help me.

Hi @solaire,

You’re right, I got the same issue, and only with docker. If you have a look at the browser debug console, it seems related to some CORS issue:

While waiting this to be fixed, you can edit and bind mount a modified version of /etc/nginx/snippets/passbolt-ssl.conf file by adding this somewhere in the file content:

  if ($scheme = http) {
    return 301 https://$host$request_uri;

Thus, if http scheme is detected, your request will be redirected to its https version :slight_smile:

@_jc Fantastic!

This is what I’ve needed :slight_smile:

Thank you :slight_smile:

1 Like