21 lines
402 B
Caddyfile
21 lines
402 B
Caddyfile
:80 {
|
|
root * /srv
|
|
encode zstd gzip
|
|
|
|
@runtimeConfig path /runtime-config.js
|
|
header @runtimeConfig Cache-Control "no-store"
|
|
|
|
@immutableAssets path /assets/*
|
|
header @immutableAssets Cache-Control "public, max-age=31536000, immutable"
|
|
|
|
@edgeTts path /api/tts/edge /api/tts/edge/voices
|
|
handle @edgeTts {
|
|
reverse_proxy 127.0.0.1:8790
|
|
}
|
|
|
|
handle {
|
|
try_files {path} /index.html
|
|
file_server
|
|
}
|
|
}
|