-
Notifications
You must be signed in to change notification settings - Fork 32
proxies.json
James Sigurðarson edited this page Jan 31, 2015
·
1 revision
#Proxies.json
This file contains the configuration that dnsproxy uses to generate the settings for all the different services. They are stored in the proxies/
directory, and are named proxies-CC.json
where CC denotes a code representing the country/region. By standard these codes are of length 2, but may be longer. Selecting which proxies.json to use is done with -c CC
.
The .json file is an object where each key is a service. Each service has a proxies
key, which is an array of domains to proxy. The keys for each proxy are explained below:
Key | Type | Description |
---|---|---|
alias | String | A unique alias for this domain. This is used to generate the DNAT rules in haproxy. |
domain | String | The domain to generate proxy settings for. |
protocols | Array | Which protocols to actually forward for. At this time only http and https are supported. Note that DNS cannot pick and choose by protocol, so if only one is proxied, the website will be inaccessible by the other. |
dnat | Boolean | In DNAT mode, wether this should be part of the haproxy catchall, or if it should have a separate IP address. |
Example:
{
"myawesomeservice": {
"proxies": [
{
"alias": "myawesomeservice",
"domain": "myawesomeservice.mydomain.com",
"protocols": ["http", "https"],
"dnat": false
},
//...
]
},
//...
}