39 lines
563 B
Plaintext
39 lines
563 B
Plaintext
|
: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 * {
|
||
|
reverse_proxy * parcel:1234
|
||
|
}
|
||
|
|
||
|
log {
|
||
|
output stderr
|
||
|
format console
|
||
|
}
|
||
|
}
|