Skip to content

Instantly share code, notes, and snippets.

@Shine-neko
Created April 1, 2020 17:06
Show Gist options
  • Save Shine-neko/7079f6ebb87d6d77087546f488dab9d1 to your computer and use it in GitHub Desktop.
Save Shine-neko/7079f6ebb87d6d77087546f488dab9d1 to your computer and use it in GitHub Desktop.
# sozu proxy test config file
command_socket = "/var/run/sozu/socket"
saved_state = "/tmp/sozu-state.json"
log_level = "debug"
log_target = "stdout"
command_buffer_size = 16384
[[listeners]]
protocol = "http"
# listening address
address = "0.0.0.0:80"
[applications]
[applications.NameOfYourApp]
# possible values are http or tcp
# https proxies will use http here
protocol = "http"
frontends = [
{ address = "172.17.0.3:80", hostname = "test.localhost" },
]
# additional options for frontends: sticky_session (boolean) and https_redirect (boolean)
backends = [
{ address = "172.17.0.3:80" }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment