mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
Caddy access logs
This commit is contained in:
parent
2dc5751f11
commit
bd33b898fe
4 changed files with 24 additions and 0 deletions
|
|
@ -14,13 +14,20 @@
|
||||||
servers {
|
servers {
|
||||||
metrics
|
metrics
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log default {
|
||||||
|
output stdout
|
||||||
|
format json
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
http:// {
|
http:// {
|
||||||
|
log
|
||||||
respond "This is an HTTPS-only server, silly you. Go to https:// instead." 418
|
respond "This is an HTTPS-only server, silly you. Go to https:// instead." 418
|
||||||
}
|
}
|
||||||
|
|
||||||
# HTTP
|
# HTTP
|
||||||
:9010 {
|
:9010 {
|
||||||
|
log
|
||||||
metrics /metrics
|
metrics /metrics
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ in
|
||||||
builtins.readFile ./base.Caddyfile +
|
builtins.readFile ./base.Caddyfile +
|
||||||
''
|
''
|
||||||
${config.networking.hostName}.infra.noratrieb.dev {
|
${config.networking.hostName}.infra.noratrieb.dev {
|
||||||
|
log
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
header -Last-Modified
|
header -Last-Modified
|
||||||
root * ${import ./caddy-static-prepare {
|
root * ${import ./caddy-static-prepare {
|
||||||
|
|
@ -55,6 +56,7 @@ in
|
||||||
${
|
${
|
||||||
if name == "vps1" || name == "vps3" || name == "vps4" then ''
|
if name == "vps1" || name == "vps3" || name == "vps4" then ''
|
||||||
noratrieb.dev {
|
noratrieb.dev {
|
||||||
|
log
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
header -Last-Modified2a01:4f8:1c1c:cb18::
|
header -Last-Modified2a01:4f8:1c1c:cb18::
|
||||||
root * ${import ./caddy-static-prepare {
|
root * ${import ./caddy-static-prepare {
|
||||||
|
|
|
||||||
|
|
@ -25,64 +25,78 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
www.noratrieb.dev {
|
www.noratrieb.dev {
|
||||||
|
log
|
||||||
redir https://noratrieb.dev{uri} permanent
|
redir https://noratrieb.dev{uri} permanent
|
||||||
}
|
}
|
||||||
|
|
||||||
uptime.noratrieb.dev {
|
uptime.noratrieb.dev {
|
||||||
|
log
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
reverse_proxy * localhost:5010
|
reverse_proxy * localhost:5010
|
||||||
}
|
}
|
||||||
|
|
||||||
hugo-chat.noratrieb.dev {
|
hugo-chat.noratrieb.dev {
|
||||||
|
log
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
reverse_proxy * localhost:5002
|
reverse_proxy * localhost:5002
|
||||||
}
|
}
|
||||||
|
|
||||||
api.hugo-chat.noratrieb.dev {
|
api.hugo-chat.noratrieb.dev {
|
||||||
|
log
|
||||||
import cors https://hugo-chat.noratrieb.dev "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"
|
import cors https://hugo-chat.noratrieb.dev "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
reverse_proxy * localhost:5001
|
reverse_proxy * localhost:5001
|
||||||
}
|
}
|
||||||
|
|
||||||
bisect-rustc.noratrieb.dev {
|
bisect-rustc.noratrieb.dev {
|
||||||
|
log
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
reverse_proxy * localhost:5005
|
reverse_proxy * localhost:5005
|
||||||
}
|
}
|
||||||
|
|
||||||
docker.noratrieb.dev {
|
docker.noratrieb.dev {
|
||||||
|
log
|
||||||
reverse_proxy * localhost:5000
|
reverse_proxy * localhost:5000
|
||||||
}
|
}
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# deadname redirects
|
# deadname redirects
|
||||||
nilstrieb.dev {
|
nilstrieb.dev {
|
||||||
|
log
|
||||||
redir https://noratrieb.dev{uri} permanent
|
redir https://noratrieb.dev{uri} permanent
|
||||||
}
|
}
|
||||||
|
|
||||||
www.nilstrieb.dev {
|
www.nilstrieb.dev {
|
||||||
|
log
|
||||||
redir https://noratrieb.dev{uri} permanent
|
redir https://noratrieb.dev{uri} permanent
|
||||||
}
|
}
|
||||||
|
|
||||||
blog.nilstrieb.dev {
|
blog.nilstrieb.dev {
|
||||||
|
log
|
||||||
redir https://noratrieb.dev/blog{uri} permanent
|
redir https://noratrieb.dev/blog{uri} permanent
|
||||||
}
|
}
|
||||||
|
|
||||||
bisect-rustc.nilstrieb.dev {
|
bisect-rustc.nilstrieb.dev {
|
||||||
|
log
|
||||||
redir https://bisect-rustc.dev/blog{uri} permanent
|
redir https://bisect-rustc.dev/blog{uri} permanent
|
||||||
}
|
}
|
||||||
|
|
||||||
docker.nilstrieb.dev {
|
docker.nilstrieb.dev {
|
||||||
|
log
|
||||||
redir https://docker.noratrieb.dev{uri} permanent
|
redir https://docker.noratrieb.dev{uri} permanent
|
||||||
}
|
}
|
||||||
|
|
||||||
hugo-chat.nilstrieb.dev {
|
hugo-chat.nilstrieb.dev {
|
||||||
|
log
|
||||||
redir https://hugo-chat.noratrieb.dev{uri} permanent
|
redir https://hugo-chat.noratrieb.dev{uri} permanent
|
||||||
}
|
}
|
||||||
|
|
||||||
api.hugo-chat.nilstrieb.dev {
|
api.hugo-chat.nilstrieb.dev {
|
||||||
|
log
|
||||||
redir https://api.hugo-chat.noratrieb.dev{uri} permanent
|
redir https://api.hugo-chat.noratrieb.dev{uri} permanent
|
||||||
}
|
}
|
||||||
|
|
||||||
uptime.nilstrieb.dev {
|
uptime.nilstrieb.dev {
|
||||||
|
log
|
||||||
redir https://uptime.noratrieb.dev{uri} permanent
|
redir https://uptime.noratrieb.dev{uri} permanent
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
grafana.noratrieb.dev {
|
grafana.noratrieb.dev {
|
||||||
|
log
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
reverse_proxy * localhost:3000
|
reverse_proxy * localhost:3000
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue