Update config and add public caddy file browser

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2024-09-20 21:06:41 +02:00
parent e0ce9cf191
commit 9700b8a379
6 changed files with 28 additions and 4 deletions

View File

@ -92,6 +92,7 @@ And then, caddy will generate the certificate for you and renew it automatically
| [projectsend.bensuperpc.org](https://projectsend.bensuperpc.org) | Sub | ProjectSend for file sharing | | [projectsend.bensuperpc.org](https://projectsend.bensuperpc.org) | Sub | ProjectSend for file sharing |
| [picoshare.bensuperpc.org](https://picoshare.bensuperpc.org) | Sub | Picoshare for file sharing | | [picoshare.bensuperpc.org](https://picoshare.bensuperpc.org) | Sub | Picoshare for file sharing |
| [dufs.bensuperpc.org](https://dufs.bensuperpc.org) | Sub | Dufs for file sharing | | [dufs.bensuperpc.org](https://dufs.bensuperpc.org) | Sub | Dufs for file sharing |
| [public.bensuperpc.org](https://public.bensuperpc.org) | Sub | Caddy for file sharing |
| bensuperpc.com | Main | Redirect to www.bensuperpc.org | | bensuperpc.com | Main | Redirect to www.bensuperpc.org |
| bensuperpc.fr | Main | Redirect to www.bensuperpc.org | | bensuperpc.fr | Main | Redirect to www.bensuperpc.org |
| bensuperpc.net | Main | Redirect to www.bensuperpc.org | | bensuperpc.net | Main | Redirect to www.bensuperpc.org |

View File

@ -10,6 +10,11 @@ homepage.bensuperpc.org {
redir https://www.bensuperpc.org{uri} permanent redir https://www.bensuperpc.org{uri} permanent
} }
public.bensuperpc.org {
root * /public_data
file_server browse
}
wordpress.bensuperpc.org { wordpress.bensuperpc.org {
root * /var/www/html root * /var/www/html
php_fastcgi wordpress:9000 php_fastcgi wordpress:9000

View File

@ -13,10 +13,12 @@ services:
- 80:80 - 80:80
- 443:443 - 443:443
volumes: volumes:
- wordpress:/var/www/html:rw
- caddy_data:/data:rw - caddy_data:/data:rw
- caddy_config:/config:rw - caddy_config:/config:rw
- ./caddy/config:/etc/caddy:ro - ./caddy/config:/etc/caddy:ro
- wordpress:/var/www/html:rw
- public_data:/public_data:ro
networks: networks:
- infra-network - infra-network
env_file: env_file:
@ -46,6 +48,7 @@ services:
cap_drop: cap_drop:
- NET_ADMIN - NET_ADMIN
- NET_RAW - NET_RAW
- SYS_ADMIN
volumes: volumes:
caddy_data: caddy_data:
@ -54,3 +57,7 @@ volumes:
name: caddy_config name: caddy_config
caddy_backup: caddy_backup:
name: caddy_backup name: caddy_backup
wordpress:
name: wordpress
public_data:
name: public_data

View File

@ -64,6 +64,12 @@
description: Dufs description: Dufs
ping: dufs.bensuperpc.org ping: dufs.bensuperpc.org
container: dufs container: dufs
- caddy:
icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/caddy.png
href: https://public.bensuperpc.org/
description: File browser
ping: public.bensuperpc.org
container: caddy
- Utils: - Utils:
- it-tools: - it-tools:

View File

@ -5,8 +5,8 @@ services:
profiles: profiles:
- main_infrastructure - main_infrastructure
volumes: volumes:
- public_data:/public:rw - public_data:/public_data:rw
- private_data:/private:rw - private_data:/private_data:rw
read_only: true read_only: true
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
@ -16,7 +16,7 @@ services:
- CHOWN - CHOWN
- DAC_OVERRIDE - DAC_OVERRIDE
# Fix root permissions on mounted volumes # Fix root permissions on mounted volumes
command: chown -R ${PUID:-1000}:${PGID:-1000} /public /privates command: chown -R ${PUID:-1000}:${PGID:-1000} /public_data /private_data
volumes: volumes:
public_data: public_data:
@ -28,3 +28,7 @@ networks:
infra-network: infra-network:
driver: bridge driver: bridge
name: infra-network name: infra-network
intern-network:
driver: bridge
internal: true
name: intern-network

View File

@ -57,6 +57,7 @@ services:
cap_drop: cap_drop:
- NET_ADMIN - NET_ADMIN
- NET_RAW - NET_RAW
- SYS_ADMIN
volumes: volumes:
wordpress_db: wordpress_db: