feat: add multi-user management and secure LuCI access
This commit is contained in:
25
deploy/reverse-proxy/Caddyfile.keendns
Normal file
25
deploy/reverse-proxy/Caddyfile.keendns
Normal file
@@ -0,0 +1,25 @@
|
||||
{$RMM_DOMAIN} {
|
||||
encode zstd gzip
|
||||
reverse_proxy rmm-server:8080
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||
X-Content-Type-Options "nosniff"
|
||||
X-Frame-Options "DENY"
|
||||
Referrer-Policy "same-origin"
|
||||
Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'; frame-ancestors 'none'; base-uri 'none'; form-action 'self'"
|
||||
}
|
||||
}
|
||||
|
||||
*.{$RMM_DEVICE_DOMAIN} {
|
||||
tls /certs/device-domain.crt /certs/device-domain.key
|
||||
encode zstd gzip
|
||||
reverse_proxy rmm-server:8080
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||
X-Content-Type-Options "nosniff"
|
||||
X-Frame-Options "SAMEORIGIN"
|
||||
Referrer-Policy "no-referrer"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user