添加 https 反代
This commit is contained in:
2
.env.example
Normal file
2
.env.example
Normal file
@@ -0,0 +1,2 @@
|
||||
GOST_USERNAME=gost
|
||||
GOST_PASSWORD=gost
|
||||
3
Caddyfile
Normal file
3
Caddyfile
Normal file
@@ -0,0 +1,3 @@
|
||||
proxy1.lanhuip.com {
|
||||
reverse_proxy localhost:9700
|
||||
}
|
||||
@@ -2,8 +2,15 @@ name: proxy-gost
|
||||
|
||||
services:
|
||||
gost:
|
||||
image: gogost/gost
|
||||
image: gogost/gost:latest
|
||||
network_mode: host
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user