mirror of
https://github.com/52North/ecmwf-dataset-crawl
synced 2025-03-12 16:00:54 +01:00
60 lines
1.2 KiB
Caddyfile
60 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
|
|
}
|
|
|