29 lines
430 B
Caddyfile
29 lines
430 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
|
|
}
|
|
|
|
handle * {
|
|
root * /app/dist/
|
|
file_server
|
|
try_files {path} /
|
|
}
|
|
|
|
log {
|
|
output stderr
|
|
format console
|
|
}
|
|
}
|