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