If the request is authenticated (with map_key) then we log as the database owner, otherwise we log as the default user. The default user is now "publicuser" by default. Raises dependency on Windshaft to 0.4.9+, to get the grainstore version allowing override of database username. Add test for req2params function, particularly authentication, Add test for authenticated / unauthenticated access
40 lines
888 B
JavaScript
40 lines
888 B
JavaScript
var config = {
|
|
environment: 'development'
|
|
,port: 8181
|
|
,host: '127.0.0.1'
|
|
,enable_cors: true
|
|
,cache_enabled: false
|
|
,postgres: {
|
|
type: "postgis",
|
|
user: "publicuser",
|
|
db_user: 'development_cartodb_user_<%= user_id %>',
|
|
host: '127.0.0.1',
|
|
port: 5432,
|
|
extent: "-20005048.4188,-20005048.4188,20005048.4188,20005048.4188",
|
|
/* experimental
|
|
geometry_field: "the_geom",
|
|
extent: "-180,-90,180,90",
|
|
srid: 4326,
|
|
*/
|
|
simplify: true
|
|
}
|
|
,redis: {
|
|
host: '127.0.0.1',
|
|
port: 6379,
|
|
idleTimeoutMillis: 1,
|
|
reapIntervalMillis: 1
|
|
}
|
|
,sqlapi: {
|
|
protocol: 'http',
|
|
host: 'localhost.lan',
|
|
port: 8080,
|
|
version: 'v1'
|
|
}
|
|
,varnish: {
|
|
host: 'localhost',
|
|
port: 6082
|
|
}
|
|
};
|
|
|
|
module.exports = config;
|