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
32 lines
660 B
JavaScript
32 lines
660 B
JavaScript
var config = {
|
|
environment: 'production'
|
|
,port: 8181
|
|
,host: '127.0.0.1'
|
|
,enable_cors: true
|
|
,cache_enabled: true
|
|
,postgres: {
|
|
user: "publicuser",
|
|
db_user: 'cartodb_user_<%= user_id %>',
|
|
host: '127.0.0.1',
|
|
port: 6432,
|
|
extent: "-20005048.4188,-20005048.4188,20005048.4188,20005048.4188",
|
|
simplify: true
|
|
}
|
|
,redis: {
|
|
host: '127.0.0.1',
|
|
port: 6379
|
|
}
|
|
,sqlapi: {
|
|
protocol: 'https',
|
|
host: 'cartodb.com',
|
|
port: 8080,
|
|
version: 'v2'
|
|
}
|
|
,varnish: {
|
|
host: 'localhost',
|
|
port: 6082
|
|
}
|
|
};
|
|
|
|
module.exports = config;
|