Compare commits
2 Commits
591d1995b1
...
0d6561684d
| Author | SHA1 | Date | |
|---|---|---|---|
| 0d6561684d | |||
| 13c73243c4 |
47
Caddyfile
47
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,40 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gitea.lucasroyer.fr {
|
||||||
|
# Security
|
||||||
|
header {
|
||||||
|
X-Frame-Options "SAMEORIGIN"
|
||||||
|
X-XSS-Protection "1; mode=block"
|
||||||
|
X-Content-Type-Options "nosniff"
|
||||||
|
Referrer-Policy "strict-origin-when-cross-origin"
|
||||||
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Large files
|
||||||
|
request_body {
|
||||||
|
max_size 512MB
|
||||||
|
}
|
||||||
|
|
||||||
|
# Compression
|
||||||
|
encode zstd gzip
|
||||||
|
|
||||||
|
# Log
|
||||||
|
log {
|
||||||
|
output file /data/gitea_access.log
|
||||||
|
}
|
||||||
|
|
||||||
|
# Redirect
|
||||||
|
reverse_proxy gitea-app:3000 {
|
||||||
|
flush_interval -1
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user