Modify condig file

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-27 04:24:19 +08:00
parent afc62f311b
commit e87bda4f33
4 changed files with 28 additions and 30 deletions

View File

@@ -26,23 +26,18 @@
enable = true;
dataDir = "${config.env.DEVENV_STATE}/caddy";
config = ''
test.sne.moe {
tls internal
handle /api/* {
reverse_proxy 127.0.0.1:8000
}
handle {
root * ${config.env.DEVENV_ROOT}/.outputs/static
encode zstd gzip
@assets path /assets/*
header @assets Cache-Control "public, max-age=31536000, immutable"
try_files {path} /index.html
file_server
}
:8080 {
handle /api/* {
reverse_proxy 127.0.0.1:8000
}
handle {
root * ${config.env.DEVENV_ROOT}/.outputs/static
encode zstd gzip
@assets path /assets/*
header @assets Cache-Control "public, max-age=31536000, immutable"
try_files {path} /index.html
file_server
}
}
'';
};