added 'Caddyfile.private'

This commit is contained in:
Aykhan Shahsuvarov 2025-02-27 02:19:50 +04:00
parent 087af75a42
commit ce8d530592
6 changed files with 10 additions and 3 deletions

View File

@ -27,6 +27,7 @@ Edit the generated `.env` files to fill in the required fields:
- `./vaultwarden/.env` - `./vaultwarden/.env`
- `./wg_easy/.env` - `./wg_easy/.env`
- `./caddy/.env` - `./caddy/.env`
- `./caddy/Caddyfile.private`
### 4. Start Services ### 4. Start Services
Launch all services with the following command: Launch all services with the following command:

1
caddy/.gitignore vendored
View File

@ -1,2 +1,3 @@
/ssl/* /ssl/*
!.gitkeep !.gitkeep
Caddyfile.private

View File

@ -194,3 +194,5 @@
} }
} }
} }
import Caddyfile.private

View File

@ -0,0 +1 @@
# Private Caddy config

View File

@ -11,6 +11,7 @@ services:
- "443:443/udp" - "443:443/udp"
volumes: volumes:
- ./Caddyfile:/etc/caddy/Caddyfile - ./Caddyfile:/etc/caddy/Caddyfile
- ./Caddyfile.private:/etc/caddy/Caddyfile.private
- ./ssl:/etc/ssl/custom/ - ./ssl:/etc/ssl/custom/
env_file: env_file:
- ./.env - ./.env

View File

@ -55,13 +55,14 @@ check_docker_compose() {
generate_env_files() { generate_env_files() {
cp --update=none ./gitea/.env.example ./gitea/.env cp --update=none ./gitea/.env.example ./gitea/.env
# cp --update=none ./memos/.env.example ./memos/.env
cp --update=none ./searxng/.env.example ./searxng/.env cp --update=none ./searxng/.env.example ./searxng/.env
cp --update=none ./sftpgo/.env.example ./sftpgo/.env cp --update=none ./sftpgo/.env.example ./sftpgo/.env
# cp --update=none ./slash/.env.example ./slash/.env
cp --update=none ./vaultwarden/.env.example ./vaultwarden/.env cp --update=none ./vaultwarden/.env.example ./vaultwarden/.env
cp --update=none ./wg_easy/.env.example ./wg_easy/.env cp --update=none ./wg_easy/.env.example ./wg_easy/.env
cp --update=none ./caddy/.env.example ./caddy/.env cp --update=none ./caddy/.env.example ./caddy/.env
cp --update=none ./caddy/Caddyfile.private.example ./caddy/Caddyfile.private
# cp --update=none ./memos/.env.example ./memos/.env
# cp --update=none ./slash/.env.example ./slash/.env
print_success ".env files generated." print_success ".env files generated."
} }