ops(logs): implement global logging and specific logs for jenkins
This commit is contained in:
18
Caddyfile
18
Caddyfile
@@ -4,6 +4,9 @@
|
||||
cache {
|
||||
ttl 10m
|
||||
}
|
||||
log {
|
||||
output file /data/caddy_global.log
|
||||
}
|
||||
}
|
||||
|
||||
jenkins.lucasroyer.fr {
|
||||
@@ -22,6 +25,11 @@ jenkins.lucasroyer.fr {
|
||||
# Compression
|
||||
encode zstd gzip
|
||||
|
||||
# Log
|
||||
log {
|
||||
output file /data/jenkins_access.log
|
||||
}
|
||||
|
||||
# Redirect
|
||||
reverse_proxy jenkins:8080 {
|
||||
flush_interval -1
|
||||
@@ -43,11 +51,6 @@ portfolio.lucasroyer.fr {
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||
}
|
||||
|
||||
# Log
|
||||
log {
|
||||
output file /data/portfolio_access.log
|
||||
}
|
||||
|
||||
# Errors
|
||||
handle_errors {
|
||||
# If error is 502, 503 or 504, show error.html without changing client URL
|
||||
@@ -63,6 +66,11 @@ portfolio.lucasroyer.fr {
|
||||
# Compression
|
||||
encode zstd gzip
|
||||
|
||||
# Log
|
||||
log {
|
||||
output file /data/portfolio_access.log
|
||||
}
|
||||
|
||||
# Redirect
|
||||
reverse_proxy portfolio:80
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user