Skip to content

Instantly share code, notes, and snippets.

@sebbrandt87
Last active June 14, 2019 14:23
Show Gist options
  • Save sebbrandt87/265753b2ed61157d07a5a9a65771b13f to your computer and use it in GitHub Desktop.
Save sebbrandt87/265753b2ed61157d07a5a9a65771b13f to your computer and use it in GitHub Desktop.
Caddyfile
:8080 {
status 200 /
}
:8000 {
prometheus 0.0.0.0:9180
realip {
from 44.128.0.0/20
}
header / {
-Server
}
basicauth / {$ADMIN_USER} {$ADMIN_PASSWORD}
basicauth / {$RO_USER} {$RO_PASSWORD}
proxy / cloudkeeperaws.marathon.l4lb.thisdcos.directory:8000 {
transparent
}
errors stderr
tls off
}
:9090 {
prometheus 0.0.0.0:9180
realip {
from 44.128.0.0/20
}
header / {
-Server
}
basicauth / {$ADMIN_USER} {$ADMIN_PASSWORD}
basicauth / {$RO_USER} {$RO_PASSWORD}
proxy / cloudkeeperprometheus.marathon.l4lb.thisdcos.directory:9090 {
transparent
}
errors stderr
tls off
}
:9093 {
prometheus 0.0.0.0:9180
realip {
from 44.128.0.0/20
}
header / {
-Server
}
basicauth / {$ADMIN_USER} {$ADMIN_PASSWORD}
basicauth / {$RO_USER} {$RO_PASSWORD}
proxy / cloudkeeperprometheus.marathon.l4lb.thisdcos.directory:9093 {
transparent
}
errors stderr
tls off
}
:9091 {
prometheus 0.0.0.0:9180
realip {
from 44.128.0.0/20
}
header / {
-Server
}
basicauth / {$ADMIN_USER} {$ADMIN_PASSWORD}
basicauth / {$RO_USER} {$RO_PASSWORD}
proxy / cloudkeeperprometheus.marathon.l4lb.thisdcos.directory:9091 {
transparent
}
errors stderr
tls off
}
:3000 {
prometheus 0.0.0.0:9180
realip {
from 44.128.0.0/20
}
header / {
-Server
}
proxy / cloudkeepergrafana.marathon.l4lb.thisdcos.directory:3000 {
transparent
websocket
}
errors stderr
tls off
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment