mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2025-08-16 14:34:57 +02:00
28 lines
454 B
Plaintext
28 lines
454 B
Plaintext
www.{$MAIN_DOMAIN} {
|
|
header {
|
|
Cache-Control "public, max-age=10"
|
|
import header_common
|
|
}
|
|
|
|
handle_errors {
|
|
@notFound expression `{http.error.status_code} == 404`
|
|
redir @notFound https://www.{$MAIN_DOMAIN} permanent
|
|
}
|
|
|
|
reverse_proxy homepage:3000
|
|
}
|
|
|
|
{$MAIN_DOMAIN} {
|
|
redir https://www.{host}{uri} permanent
|
|
}
|
|
|
|
public.{$MAIN_DOMAIN} {
|
|
root * /public_data
|
|
file_server browse
|
|
|
|
header / {
|
|
Cache-Control "no-store"
|
|
import header_common
|
|
}
|
|
}
|