From 71d8438c16213e5e42dffe6df81befb5a14a2492 Mon Sep 17 00:00:00 2001 From: luorijun Date: Thu, 11 Jun 2026 16:56:09 +0800 Subject: [PATCH] =?UTF-8?q?gost=20=E8=AE=B0=E5=BD=95=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Caddyfile | 3 --- caddy/Caddyfile | 4 ++++ docker-compose.yaml | 4 +++- gost/gost.yaml | 5 +++++ 4 files changed, 12 insertions(+), 4 deletions(-) delete mode 100644 Caddyfile create mode 100644 caddy/Caddyfile create mode 100644 gost/gost.yaml diff --git a/Caddyfile b/Caddyfile deleted file mode 100644 index fa9c8fe..0000000 --- a/Caddyfile +++ /dev/null @@ -1,3 +0,0 @@ -proxy1.lanhuip.com { - reverse_proxy localhost:9700 -} diff --git a/caddy/Caddyfile b/caddy/Caddyfile new file mode 100644 index 0000000..c275a4e --- /dev/null +++ b/caddy/Caddyfile @@ -0,0 +1,4 @@ +https://43.226.59.241:9800 { + tls internal + reverse_proxy localhost:9700 +} diff --git a/docker-compose.yaml b/docker-compose.yaml index edb7e5e..10d7ccf 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,6 +4,8 @@ services: gost: image: gogost/gost:latest network_mode: host + volumes: + - ./gost.yaml:/etc/gost/gost.yaml command: > -api $GOST_USERNAME:$GOST_PASSWORD@:9700 restart: unless-stopped @@ -12,5 +14,5 @@ services: image: caddy:latest network_mode: host volumes: - - ./Caddyfile:/etc/caddy/Caddyfile + - .caddy/Caddyfile:/etc/caddy/Caddyfile restart: unless-stopped diff --git a/gost/gost.yaml b/gost/gost.yaml new file mode 100644 index 0000000..f4a3d82 --- /dev/null +++ b/gost/gost.yaml @@ -0,0 +1,5 @@ +recorders: + - name: record-file + file: + path: /var/log/gost/ + sep: "\n"