vue-tailwind-fastapi-template/Caddyfile

31 lines
473 B
Caddyfile

:3000 {
encode zstd gzip
@staticfiles {
method GET
path /static/*
}
handle @staticfiles {
file_server {
root /app/public/
}
}
handle_path /api/* {
reverse_proxy * portfolio-backend:3001
reverse_proxy * backend:3001
}
}
handle * {
root * /app/dist/
file_server
try_files {path} /
}
log {
output stderr
format console
}
}