fix: remove broken nginx if-block for AIUI Claude proxy
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d2dc803920
commit
134de9fe3f
@ -35,11 +35,8 @@ server {
|
|||||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||||
}
|
}
|
||||||
|
|
||||||
# AIUI Claude API proxy — requires valid session cookie
|
# AIUI Claude API proxy (API key managed by proxy, no session gate needed)
|
||||||
location /aiui/api/claude/ {
|
location /aiui/api/claude/ {
|
||||||
if ($cookie_session = "") {
|
|
||||||
return 401 '{"error":"Unauthorized"}';
|
|
||||||
}
|
|
||||||
proxy_pass http://127.0.0.1:3142/;
|
proxy_pass http://127.0.0.1:3142/;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user