nuke/test/nginx-external-auth/conf.d/default.conf
fucksophie 02b9aebbe5
Some checks failed
Docker image builds / build (push) Failing after 4m22s
NUKE
2026-02-07 14:27:38 +02:00

25 lines
588 B
Text

server {
listen 80;
listen [::]:80;
server_name nginx.local.cetacean.club;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location /.within.website/ {
proxy_pass http://localhost:8923;
auth_request off;
}
location @redirectToNuke {
return 307 /.within.website/?redir=$scheme://$host$request_uri;
auth_request off;
}
location / {
auth_request /.within.website/x/cmd/nuke/api/check;
error_page 401 = @redirectToNuke;
root /usr/share/nginx/html;
index index.html index.htm;
}
}