Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
nginx config for openproject
# 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;
}
}
@AgusQuiroga

This comment has been minimized.

Copy link

AgusQuiroga commented May 31, 2018

Be advised. If you set a HTTPS conection you should add:

proxy_set_header X-Forwarded-Proto $scheme;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.