-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.toml
More file actions
32 lines (25 loc) · 909 Bytes
/
Copy pathconfig.toml
File metadata and controls
32 lines (25 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# go-socks5 example configuration. See README.md for full reference.
listen = "0.0.0.0:8008"
# When auth = false, no users may be defined.
auth = false
# Enable to expose Prometheus /metrics on its own port.
# metrics_addr = "0.0.0.0:9090"
# Optional pprof endpoint (disabled by default).
# pprof_addr = "127.0.0.1:6060"
# Connection limits and timeouts (Go duration syntax).
max_conns = 1024
handshake_timeout = "30s"
dial_timeout = "10s"
idle_timeout = "5m"
shutdown_timeout = "30s"
# Logging: format = "json" | "text"; level = "debug" | "info" | "warn" | "error".
log_format = "json"
log_level = "info"
# Example credentials block (uncomment + set auth = true).
# Use `hashpass` to generate the argon2id PHC string for `pass`.
#
# echo -n "hunter2" | ./bin/hashpass
#
# [[users]]
# login = "alice"
# pass = "$argon2id$v=19$m=65536,t=3,p=4$<base64-salt>$<base64-hash>"