feat(caddyfile): add n8n support
This commit is contained in:
111
Caddyfile
111
Caddyfile
@@ -5,8 +5,8 @@
|
|||||||
ttl 10m
|
ttl 10m
|
||||||
}
|
}
|
||||||
log {
|
log {
|
||||||
output file /data/caddy_global.log
|
output file /data/caddy_global.log
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
jenkins.lucasroyer.fr {
|
jenkins.lucasroyer.fr {
|
||||||
@@ -27,8 +27,8 @@ jenkins.lucasroyer.fr {
|
|||||||
|
|
||||||
# Log
|
# Log
|
||||||
log {
|
log {
|
||||||
output file /data/jenkins_access.log
|
output file /data/jenkins_access.log
|
||||||
}
|
}
|
||||||
|
|
||||||
# Redirect
|
# Redirect
|
||||||
reverse_proxy jenkins:8080 {
|
reverse_proxy jenkins:8080 {
|
||||||
@@ -76,53 +76,78 @@ portfolio.lucasroyer.fr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gitea.lucasroyer.fr {
|
gitea.lucasroyer.fr {
|
||||||
# Security
|
# Security
|
||||||
header {
|
header {
|
||||||
X-Frame-Options "SAMEORIGIN"
|
X-Frame-Options "SAMEORIGIN"
|
||||||
X-XSS-Protection "1; mode=block"
|
X-XSS-Protection "1; mode=block"
|
||||||
X-Content-Type-Options "nosniff"
|
X-Content-Type-Options "nosniff"
|
||||||
Referrer-Policy "strict-origin-when-cross-origin"
|
Referrer-Policy "strict-origin-when-cross-origin"
|
||||||
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Large files
|
# Large files
|
||||||
request_body {
|
request_body {
|
||||||
max_size 512MB
|
max_size 512MB
|
||||||
}
|
}
|
||||||
|
|
||||||
# Compression
|
# Compression
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
|
|
||||||
# Log
|
# Log
|
||||||
log {
|
log {
|
||||||
output file /data/gitea_access.log
|
output file /data/gitea_access.log
|
||||||
}
|
}
|
||||||
|
|
||||||
# Redirect
|
# Redirect
|
||||||
reverse_proxy gitea-app:3000 {
|
reverse_proxy gitea-app:3000 {
|
||||||
flush_interval -1
|
flush_interval -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
kuma.lucasroyer.fr {
|
kuma.lucasroyer.fr {
|
||||||
# Security
|
# Security
|
||||||
header {
|
header {
|
||||||
X-Frame-Options "SAMEORIGIN"
|
X-Frame-Options "SAMEORIGIN"
|
||||||
X-XSS-Protection "1; mode=block"
|
X-XSS-Protection "1; mode=block"
|
||||||
X-Content-Type-Options "nosniff"
|
X-Content-Type-Options "nosniff"
|
||||||
Referrer-Policy "strict-origin-when-cross-origin"
|
Referrer-Policy "strict-origin-when-cross-origin"
|
||||||
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Compression
|
# Compression
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
|
|
||||||
# Log
|
# Log
|
||||||
log {
|
log {
|
||||||
output file /data/kuma_access.log
|
output file /data/kuma_access.log
|
||||||
}
|
}
|
||||||
|
|
||||||
# Redirect
|
# Redirect
|
||||||
reverse_proxy uptime-kuma:3001 {
|
reverse_proxy uptime-kuma:3001 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
n8n.lucasroyer.fr {
|
||||||
|
# Security
|
||||||
|
header {
|
||||||
|
X-Frame-Options "SAMEORIGIN"
|
||||||
|
X-Content-Type-Options "nosniff"
|
||||||
|
X-XSS-Protection "1; mode=block"
|
||||||
|
Referrer-Policy "strict-origin-when-cross-origin"
|
||||||
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Compression
|
||||||
|
encode zstd gzip
|
||||||
|
|
||||||
|
# Log
|
||||||
|
log {
|
||||||
|
output file /data/n8n_access.log
|
||||||
|
}
|
||||||
|
|
||||||
|
# Redirect
|
||||||
|
reverse_proxy n8n:5678 {
|
||||||
|
header_up Host {host}
|
||||||
|
header_up X-Real-IP {remote_host}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user