Re-introduce sqlapi.host directive, allowing DNS lookups drop

For backward compatibility, sqlapi.host is only used if domain
is also defined and has a different value (empty string allowed).

Closes #117
This commit is contained in:
Sandro Santilli
2014-01-30 16:12:37 +01:00
parent c0020fd75a
commit ca4f3d2025
7 changed files with 58 additions and 12 deletions
+8 -1
View File
@@ -64,8 +64,15 @@ var config = {
}
,sqlapi: {
protocol: 'http',
domain: 'localhost.lan',
// If "host" is given, it will be used
// to connect to the SQL-API without a
// DNS lookup
host: '127.0.0.1',
port: 8080,
// The "domain" part will be appended to
// the cartodb username and passed to
// SQL-API requests in the Host HTTP header
domain: '',
version: 'v1'
}
,varnish: {