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"