forked from locana-co/PGRestAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.js.example
executable file
·65 lines (48 loc) · 2.36 KB
/
settings.js.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//Settings.js is not part of the repository. However, it should be deployed with the application and contain deployment-specific settings.
//there is a settings.js.example file that should match the structure and properties of this file that IS checked in to the repo.
var settings = {}
settings.pg = {};
settings.application = {};
settings.tilestream = {};
//application port settings
settings.application.port = 3001;
//settings.application.ip = "localhost"; //Typically localhost. If deploying on Amazon EC2 Ubuntu, comment out this line.
//Settings for postgres DB
settings.pg.username = 'username';
settings.pg.password = 'password';
settings.pg.server = '127.0.0.1';
settings.pg.port = '5432';
settings.pg.database = 'test';
settings.pg.featureLimit = 1000; //how many features to return by default
settings.tilestream.host = ""; //54.212.254.185
settings.tilestream.path = ""; ///api/Tileset
settings.tilestream.port = ""; //8888
//Should the API display postgres views?
settings.displayViews = true;
//Should the API display postgres tables?
settings.displayTables = true;
//Should the API hide any postgres tables or views?
settings.pg.noFlyList = ["att_0"];
//The list of formats to be returned by the Table Query REST endpoint. If ogr2ogr is installed, .shp will be added automatically.
settings.application.formatList =[ 'html', 'GeoJSON', 'esriJSON'];
//Where to write out GeoJSON files?
settings.application.geoJsonOutputFolder = "/public/geojson/output/";
//Optional. If you're using port forwarding or URL rewriting, but need to display full URLs to your assets, this will stand in for the host.
settings.application.publichost = ""; //like myhost.com. Keep this empty if you want to use the default host
settings.application.publicport = "80";
//Epxress Session Secret
settings.epxressSessionSecret = "secret";
//MongoDB Authentication
settings.mongodb = {};
settings.mongodb.db = "mongodb://localhost/authentication";
//Facebook App ID
settings.facebook = {};
settings.facebook.appid = "12345";
settings.facebook.secret = "secret";
//Leaflet version reference
settings.leaflet = {};
settings.leaflet.js = 'http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js?2';
settings.leaflet.css = 'http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css';
settings.jquery = {};
settings.jquery.js = 'http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js';
module.exports = settings;