wayfarer/test/support/example.ex
James Harton a381ca4b34
All checks were successful
continuous-integration/drone/push Build is passing
feat: add proxying. (#7)
Reviewed-on: https://code.harton.nz/james/wayfarer/pulls/7
Co-authored-by: James Harton <james@harton.nz>
Co-committed-by: James Harton <james@harton.nz>
2023-11-19 17:56:07 +13:00

28 lines
446 B
Elixir

defmodule Support.Example do
@moduledoc false
use Wayfarer
config "Example" do
listeners do
# http "127.0.0.1", 8080
http "0.0.0.0", 8080
end
targets do
http "127.0.0.1", 8082
http "192.168.4.26", 80
end
health_checks do
check do
interval :timer.seconds(5)
end
end
host_patterns do
pattern "*.example.com"
pattern "example.com"
end
end
end