From 9b8db82872b11a974bffe494a89fc4f26847984d Mon Sep 17 00:00:00 2001 From: cnphpbb Date: Fri, 7 Feb 2025 17:11:13 +0800 Subject: [PATCH] up(webout): add txc stack --- webout/configs/caddy/txc-proxy.conf | 10 ++++++++++ webout/txc-webout.yml | 17 +++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 webout/configs/caddy/txc-proxy.conf create mode 100644 webout/txc-webout.yml diff --git a/webout/configs/caddy/txc-proxy.conf b/webout/configs/caddy/txc-proxy.conf new file mode 100644 index 0000000..329f8cd --- /dev/null +++ b/webout/configs/caddy/txc-proxy.conf @@ -0,0 +1,10 @@ +https://48474.site { + tls moqiruyi@gmail.com + root * /www-root/site.tp229.com/public + file_server + encode zstd gzip +} + +https://www.48474.site { + redir https://48474.site permanent +} \ No newline at end of file diff --git a/webout/txc-webout.yml b/webout/txc-webout.yml new file mode 100644 index 0000000..7954e82 --- /dev/null +++ b/webout/txc-webout.yml @@ -0,0 +1,17 @@ +# run:: docker compose -p out-caddy --env-file ./webout/env.cfg -f ./webout/txc-webout.yml up -d + +services: + web-out: + image: ${IMAGE_TAG} + volumes: + - caddy_data:/data + - caddy_config:/config + - ${TXC_DEPLOY_ROOT}/webout/configs/caddy/txc-proxy.conf:/etc/caddy/Caddyfile + - ${TXC_VOLUMES_ROOT}/web-root:/www-root + ports: + - '443:443' + - '80:80' + container_name: web-out + restart: unless-stopped + environment: + - TZ=Asia/Shanghai \ No newline at end of file