replacer/config.example.toml

20 lines
582 B
TOML

bind = '127.0.0.1'
# you can also bind to a unix socket, and environment vars are supported:
# bind = '$RUNTIME_DIRECTORY/replacer.sock'
port = '8000'
# if using a unix socket, you can specify the file access mode here. it defaults to 0o775.
socket_mod = 0o777
# whether to enable request logging. disabled by default
debug = True
# replace foo with bar for site1.example
[hosts."site1.example"]
upstream = 'http://localhost:3001'
pattern = 'foo'
repl = 'bar'
# just pass through site2.example unmodified
[hosts."site2.example"]
upstream = 'http://localhost:3001'
replace = false