Last active
April 25, 2025 19:45
-
-
Save seLain/375d16ccd4542e3727e97a7478187d3a to your computer and use it in GitHub Desktop.
nginx config for openproject
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assume : | |
# - openproject installed in /opt/openproject | |
# - local port: 6000 | |
# - external port: 6020 | |
server { | |
listen 6020; | |
server_name SERVER_DOMAIN_NAME; | |
root /opt/openproject/public; | |
location ~ / { | |
proxy_pass_request_headers on; | |
proxy_set_header X-Forwarded-Host $host:$server_port; | |
proxy_set_header X-Forwarded-Server $host:$server_port; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://127.0.0.1:6000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From OpenProject 15.5 on, you need to make sure folder /assets is served directly and not handled by the proxy.
See https://community.openproject.org/projects/openproject/work_packages/63503/ for details.
Insert the following snippet before "location /"
Make sure the the folder matches your installation