Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add X-Forwarded-{Host,Proto} to sample Nginx configuration

Sam Vervaeckbe3667a5d289
diff --git a/docs/installation-and-operations/configuration/server/README.md b/docs/installation-and-operations/configuration/server/README.md
index c61a3674bba..da928b4666e 100644
--- a/docs/installation-and-operations/configuration/server/README.md
+++ b/docs/installation-and-operations/configuration/server/README.md
@@ -50,3 +50,30 @@ server {
}
}
```
+
+And the corresponding NginX configuration file would look like:
+
+```nginx
+# default.conf
+upstream web {
+ server web:8080;
+}
+
+server {
+ listen 80;
+ server_name _;
+
+ location / {
+ proxy_pass_header Server;
+ proxy_set_header Host $http_host;
+ proxy_redirect off;
+ proxy_set_header X-Forwarded-Host $host:$server_port;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Scheme $scheme;
+ proxy_pass http://web/;
+ }
+}
+```
+
+```