30 lines
577 B
Caddyfile
30 lines
577 B
Caddyfile
{
|
|
debug
|
|
}
|
|
|
|
ai-gateway.ldex.dev {
|
|
log {
|
|
output stdout
|
|
}
|
|
|
|
# Remove the server signature so Zscaler doesn't know it's a Python app
|
|
header {
|
|
-Server
|
|
Access-Control-Allow-Origin "{header.Origin}"
|
|
Access-Control-Allow-Methods "GET, POST, OPTIONS"
|
|
Access-Control-Allow-Headers "*"
|
|
Access-Control-Expose-Headers "*"
|
|
Access-Control-Allow-Credentials "true"
|
|
defer
|
|
}
|
|
|
|
@options {
|
|
method OPTIONS
|
|
}
|
|
handle @options {
|
|
respond "" 204
|
|
}
|
|
|
|
reverse_proxy ai-gateway:8000
|
|
}
|