This commit is contained in:
39
Caddyfile
39
Caddyfile
@@ -261,3 +261,42 @@ motsdepasse.interstices.pro {
|
|||||||
header_up X-Real-IP {remote_host}
|
header_up X-Real-IP {remote_host}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nextcloud.lucasroyer.fr {
|
||||||
|
# Large files
|
||||||
|
request_body {
|
||||||
|
max_size 10GB
|
||||||
|
}
|
||||||
|
|
||||||
|
# Compression
|
||||||
|
encode zstd gzip
|
||||||
|
|
||||||
|
# Log
|
||||||
|
log {
|
||||||
|
output file /data/nextcloud_access.log
|
||||||
|
}
|
||||||
|
|
||||||
|
# Redirect
|
||||||
|
reverse_proxy nextcloud-web:80 {
|
||||||
|
header_up Host {host}
|
||||||
|
header_up X-Real-IP {remote_host}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
onlyoffice.lucasroyer.fr {
|
||||||
|
# Security
|
||||||
|
header {
|
||||||
|
Content-Security-Policy "frame-ancestors 'self' nextcloud.lucasroyer.fr"
|
||||||
|
X-Frame-Options "ALLOW-FROM https://nextcloud.lucasroyer.fr"
|
||||||
|
X-Content-Type-Options nosniff
|
||||||
|
}
|
||||||
|
|
||||||
|
# Compression
|
||||||
|
encode zstd gzip
|
||||||
|
|
||||||
|
# Redirect
|
||||||
|
reverse_proxy onlyoffice:80 {
|
||||||
|
header_up Host {host}
|
||||||
|
header_up X-Real-IP {remote_host}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user