Last active
November 27, 2021 22:46
-
-
Save audstanley/53a70ff3e7d9367f48a0d7e20287345f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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