Skip to content

Instantly share code, notes, and snippets.

@OhMeadhbh
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save OhMeadhbh/8075c412e82ec43b1fb6 to your computer and use it in GitHub Desktop.

Select an option

Save OhMeadhbh/8075c412e82ec43b1fb6 to your computer and use it in GitHub Desktop.
sn-proxy v1 config file
{
"production": {
"port": 80,
"httpsify": true
},
"staging": {
"port": 8080,
"default": "http://127.0.0.1:19000",
"hosts": [
{ "host": "#lo", "target": "http://127.0.0.1:19002" },
{ "host": "#eth0", "target": "http://127.0.0.1:19002" },
{ "host": "local.example.org", "target": "http://127.0.0.1:19001" },
{ "host": "*.example.net", "regex": "^.*\\.example\\.net$", "target": "http://127.0.0.1:19002" },
{ "host": "local.example.com", "default": "http://127.0.0.1:19003", "paths": [
{ "path": "^/api/v1", "target": "http://127.0.0.1:19004" },
{ "path": "^/api/v2", "target": "http://127.0.0.1:19005" }
] },
{ "host": "paranoid.example.com", "target": "https://192.168.1.17:12718", "client": "#hostname" }
]
},
"secure": {
"tls": true,
"port": 443,
"default": "http://127.0.0.1:9000",
"hosts": [
{ "host": "#lo", "target": "http://127.0.0.1:9002" },
{ "host": "#eth0", "target": "http://127.0.0.1:9002" },
{ "host": "local.example.org", "target": "http://127.0.0.1:9001" },
{ "host": "*.example.net", "regex": "^.*\\.example\\.net$", "target": "http://127.0.0.1:9002" },
{ "host": "local.example.com", "default": "http://127.0.0.1:9003", "paths": [
{ "path": "^/api/v1", "target": "http://127.0.0.1:9004" },
{ "path": "^/api/v2", "target": "http://127.0.0.1:9005" }
] },
{ "host": "paranoid.example.com", "target": "https://192.168.1.17:12717", "client": "#hostname" }
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment