Update config

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2023-12-10 09:04:50 +01:00
parent 0c8bd4664c
commit 3716b0a4ce
No known key found for this signature in database
GPG Key ID: C8CB30D84F17006E
4 changed files with 17 additions and 1 deletions

View File

@ -64,6 +64,7 @@ And then, caddy will generate the certificate for you and renew it automatically
| bensuperpc.com | Redirect to bensuperpc.org | | bensuperpc.com | Redirect to bensuperpc.org |
| bensuperpc.fr | Redirect to bensuperpc.org | | bensuperpc.fr | Redirect to bensuperpc.org |
| bensuperpc.net | Redirect to bensuperpc.org | | bensuperpc.net | Redirect to bensuperpc.org |
| bensuperpc.ovh | Redirect to bensuperpc.org |
### Configure the infrastructure ### Configure the infrastructure

View File

@ -1,8 +1,9 @@
{ {
email bensuperpc@gmail.com email bensuperpc@gmail.com
} }
import bensuperpc.org/Caddyfile import bensuperpc.org/Caddyfile
import bensuperpc.com/Caddyfile import bensuperpc.com/Caddyfile
import bensuperpc.net/Caddyfile import bensuperpc.net/Caddyfile
import bensuperpc.ovh/Caddyfile
import bensuperpc.fr/Caddyfile import bensuperpc.fr/Caddyfile

View File

@ -16,6 +16,13 @@ www.bensuperpc.org {
rewrite @disallowed '/index.php' rewrite @disallowed '/index.php'
respond /uploads/*.php 404 respond /uploads/*.php 404
header / {
Permissions-Policy interest-cohort=()
Strict-Transport-Security max-age=31536000;
X-Content-Type-Options nosniff
X-Frame-Options DENY
}
log { log {
output file /data/logs/access.log output file /data/logs/access.log

View File

@ -0,0 +1,7 @@
bensuperpc.ovh {
redir https://www.bensuperpc.org{uri} permanent
}
www.bensuperpc.ovh {
redir https://www.bensuperpc.org{uri} permanent
}