Last updated
Was this helpful?
Was this helpful?
$scheme://$server_name/api/v2/organizr/error/$status?return=$request_uri;https://organizr.app/api/v2/organizr/error/401?return=https://demo.organizr.app# This is using nginx's built-in variables, should be copy-paste for most setups.
error_page 401 $scheme://$server_name/api/v2/organizr/error/$status?return=$request_uri; # We only want the Unauthorized code to redirect back to the loginpage
error_page 400 402 403 404 405 408 500 502 503 504 $scheme://$server_name/api/v2/organizr/error/$status; # Responds with the errorpage for the errorcodes listederror_page 401 $scheme://organizr.app/api/v2/organizr/error/$status?return=$scheme://$host$request_uri; # We only want the Unauthorized code to redirect back to the loginpage
error_page 400 402 403 404 405 408 500 502 503 504 $scheme://organizr.app/api/v2/organizr/error/$status; # Responds with the errorpage for the errorcodes listedlocation /api {
include /config/nginx/proxy.conf; # Replace with any proxy config options
proxy_pass http://organizr-ip:organizr-port;
proxy_intercept_errors off; # This is the important part
}