ba-thesis/production.Caddyfile

41 lines
600 B
Plaintext
Raw Normal View History

2023-05-10 17:19:38 +02:00
: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
}
}