Skip to content

Commit

Permalink
优化配置,修复部分配置的手误
Browse files Browse the repository at this point in the history
  • Loading branch information
mingcheng committed Jul 12, 2022
1 parent 62ff0c8 commit 6eaa5bd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Author: Ming Cheng<mingcheng@outlook.com>
*
* Created Date: Tuesday, June 21st 2022, 6:03:38 pm
* Last Modified: Thursday, July 7th 2022, 6:30:15 pm
* Last Modified: Tuesday, July 12th 2022, 1:45:52 pm
*
* http://www.opensource.org/licenses/MIT
*/
Expand All @@ -21,7 +21,7 @@ type ServerConfig struct {

Sock5 struct {
Addr string `yaml:"addr"`
} `yaml:"sock5"`
} `yaml:"socks5"`
}

type Configure struct {
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@ services:
image: ghcr.io/mingcheng/socks5lb
environment:
CHECK_TIME_INTERVAL: 60
SELECT_TIME_INTERVAL: 120
DEBUG: "true"
ports:
- 1080:1080
volumes:
- ./socks5lb.yml:/etc/socks5lb.yml:ro
restart: unless-stopped
16 changes: 13 additions & 3 deletions socks5lb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Author: Ming Cheng<mingcheng@outlook.com>
#
# Created Date: Wednesday, July 6th 2022, 2:26:10 pm
# Last Modified: Thursday, July 7th 2022, 6:32:10 pm
# Last Modified: Tuesday, July 12th 2022, 1:46:17 pm
#
# http://www.opensource.org/licenses/MIT
###
Expand All @@ -12,9 +12,9 @@ server:
http:
addr: ":8080"
socks5:
addr: ":1980"
addr: ":1080"
tproxy:
addr: ""
addr: ":8848"
backends:
- addr: 192.168.100.254:1086
check_config:
Expand All @@ -31,3 +31,13 @@ backends:
check_url: https://twitter.com/robots.txt
initial_alive: true
timeout: 3
- addr: host.docker.internal:1081
check_config:
check_url: https://www.google.com/robots.txt
initial_alive: false
timeout: 6
- addr: host.docker.internal:1082
check_config:
check_url: https://www.google.com/robots.txt
initial_alive: false
timeout: 6

0 comments on commit 6eaa5bd

Please sign in to comment.