Force SSL not working when using www

I do not have programing skills, but managed to start very nice website using Sharetribe. I just noticed that when accessing domain with www it does not redirect to https://

This is major issue because users are not able to login or signup using Facebook and if they type directly in to browser www.domain.com it does not redirect them to ssl https://

It works perfect without www , site redirects to https://

In config.yml I have:

always_use_ssl: true

I also changed config.defaults.yml to:

always_use_ssl: true

But that does not seem to work when using www. Anyone has a solution? Thank you so much for your help.

Anyone facing same issue ?

Hi @Nerijus

First of all, can you send us the URL(s) of your marketplace pls ?

Then, your site can be reached through www.yourmarketplace.com and yourmarketplace.com ?
If yes, google’s robot (and others) will consider your marketplace as two different sites but with duplicate content and this is a problem (you should google "duplicate content SEO)

To my opinion, you must choose an url (with or without subdomain) and redirection one to another. (see with your domain registrar)

For my marketplace I’m using WWW subdomain for my marketplace managed by my webserver (Nginx) but not through the config.yml file (with: always_use_ssl: true ).

Everything works fine for me.

_Additional infos : _
I’ve a dedicated server working on Ubuntu 16.04, Nginx as webserver & proxy and I’ve certificated my domain using Cerbot

Hope it helps.
Regards