Announcement

#1 2021-01-06 03:20:15

liam
Member
2021-01-06
1

Docker Piwigo running on http:// behind Nginx https:// proxy

Hi,

Using: linuxserver/piwigo

Just trying a fresh install for the first time and I had some difficulties with both the android app and file uploads from the browser.  I noticed the rootUrl in the browser source was set to http:// rather than https://

My site is https:// however the internal hosting is http://

A brief look at the source shows: include/functions_url.inc.php function get_absolute_root_url is determining $url .= 'http://';

If anyone else has the same issue, I've fixed this by added the following environment variable in the docker-compose:

- HTTPS=on

I also needed to override the php-fpm.conf directive in www2.conf to keep the variable:

clear_env = no

piwigo will now serve the correct https:// links for the site.

FYI, this also impacted the android client and this fixes that too.

Offline

 

#2 2022-07-07 13:32:22

martinis
Member
2013-07-02
32

Re: Docker Piwigo running on http:// behind Nginx https:// proxy

I also had a similar problem using docker. I have been using traefik to give me secure certificates from Let's Encrypt, but this was not fully working for Piwigo on Firefox (Linux) and Firefox (Android) when the padlock symbol was frequently indicating the site was not fully secure (mixed content blocking). Other docker software on the server had no problems.

I have implemented your 2 amendments and this now seems to have fixed the problem. Many thanks. Perhaps someone might amend the docker documentation. Maybe the change to www2.conf could be built into the docker container?

Martin

Offline

 

#3 2022-10-13 15:39:33

Leglaude91
Member
2022-10-13
2

Re: Docker Piwigo running on http:// behind Nginx https:// proxy

Hello


I'm struggling to install linuxserver/piwigo  behind Traefik reverse proxy.

While it works without traefix reverse proxy, I reach is an error 404 when piwigo is behind Traefik.

https://ibb.co/D4WN43g

It seems me nginx is generating this error 404.

How can I ride of ngink which tricks should be implemented ?

Thanks in advance

Leglaude

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact