Windshaft-cartodb/config/environments/test.js.example

45 lines
1.2 KiB
Plaintext
Raw Normal View History

2012-05-02 02:00:14 +08:00
var config = {
environment: 'test'
2012-05-02 02:02:50 +08:00
,port: 8888
2012-05-02 02:00:14 +08:00
,host: '127.0.0.1'
// idle socket timeout, in miliseconds
,socket_timeout: 600000
2012-05-02 02:00:14 +08:00
,enable_cors: true
,cache_enabled: false
,log_format: '[:date] :req[X-Real-IP] :method :req[Host]:url :status :response-time ms -> :res[Content-Type]'
,postgres_auth_user: 'test_cartodb_user_<%= user_id %>'
2012-05-02 02:00:14 +08:00
,postgres: {
// Parameters to pass to datasource plugin of mapnik
// See http://github.com/mapnik/mapnik/wiki/PostGIS
user: "publicuser",
2012-05-02 02:00:14 +08:00
host: '127.0.0.1',
port: 5432,
extent: "-20037508.3,-20037508.3,20037508.3,20037508.3",
simplify_geometries: true,
max_size: 500
2012-05-02 02:00:14 +08:00
}
,mapnik_version: '2.0.2'
,millstone: {
cache_basedir: '/tmp/cdb-tiler-test/millstone'
}
2012-05-02 02:00:14 +08:00
,redis: {
host: '127.0.0.1',
port: 6333,
2012-05-02 02:00:14 +08:00
idleTimeoutMillis: 1,
reapIntervalMillis: 1
}
,sqlapi: {
protocol: 'http',
host: 'localhost.lan',
port: 8080,
version: 'v1'
2012-05-02 02:00:14 +08:00
}
,varnish: {
host: '',
port: null,
ttl: 86400
2012-05-02 02:00:14 +08:00
}
};
module.exports = config;