No Code Attached Yet Information Required
avatar T-Nosaka
T-Nosaka
2 May 2023

Steps to reproduce the issue

This joomla 4.3.0 is in docker.
Joomla in docker is nginx with php-fpm, running on port 80, translating to port 8080 and listening.
In addition, nginx on the host uses a reverse proxy to connect from SSL to docker's 8080 port.
Joomla Media Gallery does not work properly in this environment.

Expected result

Joomla Media Gallery should function normally even in joomla in docker with reverse proxy using SSL.

Actual result

Only 'images' string are displayed, and the actual images, etc. are not displayed at all. I can't even create a folder.

System information (as much as possible)

amd64 environment
Ubuntu 22.0.4.2
Docker 23.0.5
nginx 1.18.0
php-fpm8.1
mariadb 15.1

Additional comments

I did it in the arm environment, but it was the same behavior.

avatar T-Nosaka T-Nosaka - open - 2 May 2023
avatar joomla-cms-bot joomla-cms-bot - change - 2 May 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 May 2023
avatar T-Nosaka
T-Nosaka - comment - 2 May 2023

Stopping SSL on nginx on the host and changing to port 80 works fine.

avatar richard67
richard67 - comment - 2 May 2023

@T-Nosaka Could you post a screenshot of the "Proxy" section in your Site settings in Global Configuration? See here for an example: https://docs.joomla.org/Help4.x:Site_Global_Configuration_Server

I think you have to switch on the "Behind Load Balancer" option for the reverse proxy, and you have to fill in the right details for the outbound proxy (i.e. the forward direction).

avatar richard67 richard67 - change - 2 May 2023
Labels Added: Information Required
avatar richard67 richard67 - labeled - 2 May 2023
avatar T-Nosaka
T-Nosaka - comment - 3 May 2023

Thank you for answering.

The global setting "Behind Load Balancer" remains Yes.
Shot1

A reverse proxy connection from the internal network is as follows.
Shot2
http://joomla.oci.woonet/

A reverse proxy connection from an external network is as follows.
Shot3
https://homebase.server-on.net/

It's freely connect to the outside from Joomla.
Joomla 3.x had not the problem, so I'm guessing after 4.x is the problem.

avatar dgrammatiko
dgrammatiko - comment - 3 May 2023

Is there any error logged in the browser dev tools?

avatar richard67
richard67 - comment - 3 May 2023

@T-Nosaka Your first screenshot shows that you have not switched on the "Enable Outbout Proxy" setting. Please do that and then fill in the necessary details in the fields ("Outbound proxy host" and "Outbound proxy port") which become visible below that option when you switch it on.

avatar T-Nosaka
T-Nosaka - comment - 3 May 2023

hi dgrammatiko

I looked it up.
Also, I got an error.
The problem seems to be that the communication for the endpoint is http.
Originally, it is necessary to access with https, but it seems that the protocol is wrong.
So, when I reviewed the nginx settings, the following was missing.

proxy_set_header X-Forwarded-Proto https;

I was able to solve it by adding this.
Thank you everyone.

Shot4

avatar T-Nosaka T-Nosaka - change - 3 May 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-05-03 15:34:16
Closed_By T-Nosaka
avatar T-Nosaka T-Nosaka - close - 3 May 2023

Add a Comment

Login with GitHub to post a comment