server { listen 443 ssl http2; # remember to add server certificates for HTTPS, usually certbot server_name openproject.pyuxiang.com; root /opt/openproject/public; location ^~ / { # Include your own authentication layer as desired proxy_pass http://127.0.0.1:6000; # use the OpenProject port proxy_pass_request_headers on; proxy_set_header Host $host; 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_set_header X-Forwarded-Proto $scheme; } }