server { listen 443 ssl http2; # remember to add server certificates for HTTPS, usually certbot server_name openproject.pyuxiang.com; root /opt/openproject/public; location ^~ / { try_files $uri @service; } location @service { # Add your own authentication layer 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:443; proxy_set_header X-Forwarded-Server $host:443; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 1200s; client_max_body_size 10M; } }