Files
bdi_podman_serverconf/containers/llamacpp/llamacpp.caddy
T
2026-08-08 20:35:03 +02:00

31 line
670 B
Plaintext

[domain] {
import gateway_error
# Security Headers
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains"
X-Frame-Options SAMEORIGIN
X-Content-Type-Options nosniff
X-Xss-Protection "1; mode=block"
}
request_body {
max_size 512MB
}
# Blocca accesso a file nascosti
@hidden path_regexp ^/\.ht
respond @hidden 404
# Embedding: servito dal router principale (porta 8090), modello [embedding] nel preset
@embeddings path /v1/embeddings*
reverse_proxy @embeddings [ip_address]:8090
# Chat / completions: container principale (porta 8090)
reverse_proxy [ip_address]:8090
log {
output file /var/log/caddy/llama_access.log
}
}