We have been using SCM-Manager for years as part of a Ubuntu/Plesk server. Plesk manages the subdomain (scm.our-domain.tld) and the SSL certificate so that we can access the server as
https://scm.our-domain.tld/scm
The way we make this work is, in Plesk, giving additional nginx directives for /scm as follows:
location /scm {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_pass http://localhost:32180;
}
As you can see, we expect SCM-Manager to serve without SSL at port 32180 and after the upgrade, I have modified config.yml accordingly. When I open this port in the firewall and access http://scm.our-domain.tld:32180/scm , everything works as expected. But accessing the https link no longer works. Instead, I see SCM-Manager “loading plugin information” with the three spinning circles like this:
Again, this has worked for years without any issues and only broke after last night’s auto-update to version 3.
1 Like
Hi,
We’re seeing the same issue on our instance but with Apache - also https → http on internal port.
The symptoms are the same - hanging on “loading plugin information”.
Kind regards
Luis
Same issue on my instance. Is it a bug?
In software development terms, this is called a regression. I just reported it also in GitHub here:
opened 06:33AM - 01 Feb 24 UTC
## Issue description
When SCM-Manager runs serving http without SSL behind a … https proxy such as Apache or nginx, the loading of the web page doesn't complete. Instead, it shows three spinning circles with the text "loading plugin information".
### Bug Report
#### Describe how to reproduce the bug
Running SCM-Manager in default configuration. A https proxy is set up to serve it to the Internet.
#### Describe your SCM-Manager setup
SCM-Manager running fine serving port 32180. Ubuntu 22.4 LTS server with Plesk, using nginx to host SCM-Manager as a proxy. Nginx proxy set up as follows:
```
location /scm {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_pass http://localhost:32180;
}
```
Version 3.0.0 of SCM-Manager, upgraded from the last 2.x version through apt.
#### Which operating system, browser and versions do you use?
Any.
#### Log of the bug
#### Further information like screenshots
See also the community bug report at
https://community.cloudogu.com/t/scm-manager-hosting-via-nginx-proxy-broken-after-3-0-0-upgrade
Have you tried to the the config variable forwardHeadersEnabled
to true? I had the same issue and forwardHeadersEnabled: true
solved it.
4 Likes
Yes, that fixed it. Thanks!
luislza
February 1, 2024, 12:23pm
7
Works for us too. Thank you for pointing it out!