6f9e5d6a9e
dedicated embedding container
31 řádky
670 B
Plaintext
31 řádky
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
|
|
}
|
|
}
|