Skip to content

Commit

Permalink
fix: auth when not 200
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Jun 17, 2024
1 parent b22cf2d commit e280eff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metaploy/naarad.metaploy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ server {

location /web {
auth_request /auth;
error_page 400 401 500 = @handle_auth;
error_page 300 301 302 303 304 305 306 307 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 421 422 423 424 425 426 428 429 431 451 500 501 502 503 504 505 506 507 508 510 511 = @handle_auth;

proxy_pass http://naarad;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}

location /auth {
internal;
proxy_pass https://heimdall-api.metakgp.org/validate-jwt;

proxy_set_header Cookie $http_cookie;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down

0 comments on commit e280eff

Please sign in to comment.