docs: add cloudpanel hardening and fail2ban operations notes

This commit is contained in:
Oliver 2026-02-15 13:41:32 +01:00
parent 299647e9e8
commit 703230fb86
No known key found for this signature in database
2 changed files with 27 additions and 0 deletions

View file

@ -36,6 +36,7 @@ In die vHost-Config der Site aufnehmen:
```nginx
location /api/ {
limit_req zone=limit burst=20 nodelay;
proxy_pass http://127.0.0.1:8787/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@ -43,6 +44,16 @@ location /api/ {
}
```
## Security Header (empfohlen)
```nginx
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "geolocation=(self)" always;
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'; frame-ancestors 'self'; base-uri 'self'" always;
```
## Backend Services
- `staysense-api.service` (API)