Update caddy

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2023-04-11 23:32:02 +02:00
parent c07c16f2d7
commit 951e5b2956
No known key found for this signature in database
GPG Key ID: D00C6B1021747EED
4 changed files with 6 additions and 20 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
.env
*.env

3
caddy/Caddyfile Normal file
View File

@ -0,0 +1,3 @@
#import /path/to/*.caddy
import wordpress/Caddyfile

View File

@ -14,22 +14,6 @@ bensuperpc.org {
respond /uploads/*.php 404
}
www.bensuperpc.org {
redir https://{host}{uri}
}
bensuperpc.fr {
redir https://{host}{uri}
}
www.bensuperpc.fr {
redir https://{host}{uri}
}
bensuperpc.com {
redir https://{host}{uri}
}
www.bensuperpc.com {
redir https://{host}{uri}
redir https://bensuperpc.org{uri}
}

View File

@ -25,7 +25,6 @@ services:
profiles:
- wordpress
restart: always
user: "root:root"
env_file:
- env/wordpress.env
volumes:
@ -48,7 +47,7 @@ services:
- wordpress:/var/www/html:rw
- caddy_data:/data:rw
- caddy_config:/config:rw
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./caddy:/etc/caddy:ro
networks:
- blog-network
# phpmyadmin: