41 lines
600 B
Caddyfile
41 lines
600 B
Caddyfile
:3000 {
|
|
|
|
encode zstd gzip
|
|
|
|
@staticfiles {
|
|
method GET
|
|
path /static/*
|
|
}
|
|
handle @staticfiles {
|
|
file_server {
|
|
root /app/public/
|
|
}
|
|
}
|
|
|
|
handle_path /api/* {
|
|
reverse_proxy * backend:3001
|
|
}
|
|
|
|
@robots {
|
|
method GET
|
|
path /robots.txt
|
|
path /sitemap.xml
|
|
}
|
|
handle @robots {
|
|
file_server {
|
|
root /app/robots/
|
|
}
|
|
}
|
|
|
|
handle * {
|
|
root * /app/dist/
|
|
file_server
|
|
try_files {path} /
|
|
}
|
|
|
|
log {
|
|
output stderr
|
|
format console
|
|
}
|
|
}
|