Skip to content

Instantly share code, notes, and snippets.

@audstanley
Last active November 27, 2021 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save audstanley/53a70ff3e7d9367f48a0d7e20287345f to your computer and use it in GitHub Desktop.
Save audstanley/53a70ff3e7d9367f48a0d7e20287345f to your computer and use it in GitHub Desktop.
{
"admin": {
"disabled": false,
"listen": "0.0.0.0:2019",
"enforce_origin": false,
"origins": [
"127.0.0.1"
],
"config": {
"persist": false
}
},
"apps": {
"http": {
"servers": {
"allMyServers": {
"listen": [
":443"
],
"automatic_https": {
"skip": [],
"skip_certificates": [
"skip.example.com"
]
},
"routes": [
{
"match": [
{
"host": [
"example.com"
]
}
],
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": ":3000"
}
]
}
]
},
{
"match": [
{
"host": [
"someOtherRoute.example.com"
]
}
],
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": ":3001"
}
]
}
]
}
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment