mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-29 09:36:10 +01:00
1.0 KiB
1.0 KiB
title
| title |
|---|
| SCM-Server and Nginx |
Nginx configuration
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:8080;
}
SCM-Server conf/server-config.xml
Uncomment following line:
<Set name="forwarded">true</Set>
Example:
<Call name="addConnector">
<Arg>
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<Set name="host">
<SystemProperty name="jetty.host" />
</Set>
<Set name="port">
<SystemProperty name="jetty.port" default="8080"/>
</Set>
<!-- for mod_proxy -->
<Set name="forwarded">true</Set>
</New>
</Arg>
</Call>
SCM-Manager Configuration
- Login as an admin user and select "General"
- Set the "Base Url" to the URL of Nginx (warning: don't check "Force Base Url")
- Save the new settings