You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ecmwf-dataset-crawl/proxy/Caddyfile

61 lines
1.2 KiB
Caddyfile

{$WEB_DOMAIN} {
# the frontend must be served with a trailing slash
redir {path}/
}
{$WEB_DOMAIN}/ {
root /srv/frontend
# some security headers
header / {
X-XSS-Protection "1; mode=block"
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
# Instruct browsers to cache everything up to 5 minutes
#Cache-Control "public, max-age: 300"
-Server
}
#header /static {
# Expires "Thu, 31 Dec 2037 23:55:55 GMT"
# Cache-Control public
#}
log / stdout "{remote} - [{when_iso}] \"{method} {host}{uri} {proto}\" {status} {size}"
errors stdout
}
{$WEB_DOMAIN}/api {
header / {
X-XSS-Protection "1; mode=block"
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
-Server
}
proxy / controller:{$API_PORT}/ {
transparent
}
log / stdout "{remote} - [{when_iso}] \"{method} {host}{uri} {proto}\" {status} {size}"
errors stdout
}
{$WEB_DOMAIN}/kibana {
header / {
X-XSS-Protection "1; mode=block"
X-Content-Type-Options "nosniff"
-Server
}
proxy / kibana:5601/ {
transparent
}
log / stdout "{remote} - [{when_iso}] \"{method} {host}{uri} {proto}\" {status} {size}"
errors stdout
}