添加 https 反代

This commit is contained in:
2026-06-11 13:09:40 +08:00
parent 979751e886
commit 1f32dd34f2
3 changed files with 14 additions and 2 deletions

2
.env.example Normal file
View File

@@ -0,0 +1,2 @@
GOST_USERNAME=gost
GOST_PASSWORD=gost

3
Caddyfile Normal file
View File

@@ -0,0 +1,3 @@
proxy1.lanhuip.com {
reverse_proxy localhost:9700
}

View File

@@ -2,8 +2,15 @@ name: proxy-gost
services: services:
gost: gost:
image: gogost/gost image: gogost/gost:latest
network_mode: host network_mode: host
command: > command: >
-api test:test@:9700 -api $GOST_USERNAME:$GOST_PASSWORD@:9700
restart: unless-stopped
caddy:
image: caddy:latest
network_mode: host
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
restart: unless-stopped restart: unless-stopped