mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 09:01:17 -08:00
Caddy is run with --cap-drop=ALL which removes CAP_NET_BIND_SERVICE, so binding to privileged ports (<1024) fails. Use port 8080 instead, consistent with the previous nginx-based config.
19 lines
212 B
Caddyfile
19 lines
212 B
Caddyfile
{
|
|
servers {
|
|
protocols h1 h2c
|
|
}
|
|
}
|
|
|
|
:8080 {
|
|
root * /app
|
|
|
|
# Enable on-the-fly compression for things not pre-compressed
|
|
encode zstd gzip
|
|
|
|
file_server {
|
|
precompressed br
|
|
}
|
|
|
|
try_files {path} /index.html
|
|
}
|