gost 记录配置

This commit is contained in:
2026-06-11 16:56:09 +08:00
parent 1f32dd34f2
commit 71d8438c16
4 changed files with 12 additions and 4 deletions

View File

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

4
caddy/Caddyfile Normal file
View File

@@ -0,0 +1,4 @@
https://43.226.59.241:9800 {
tls internal
reverse_proxy localhost:9700
}

View File

@@ -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

5
gost/gost.yaml Normal file
View File

@@ -0,0 +1,5 @@
recorders:
- name: record-file
file:
path: /var/log/gost/
sep: "\n"