feat(caddyfile) : add gitea support
This commit is contained in:
29
Caddyfile
29
Caddyfile
@@ -74,3 +74,32 @@ portfolio.lucasroyer.fr {
|
||||
# Redirect
|
||||
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