-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.sample.conf
210 lines (183 loc) · 6.68 KB
/
local.sample.conf
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
play {
# Secret key
# ~~~~~
# The secret key is used to secure cryptographics functions.
# This must be changed for production, but we recommend not changing it in this file.
# See http://www.playframework.com/documentation/latest/ApplicationSecret for more details.
crypto {
secret="tztQB2nX:t;03vn4Cb9SS6n/x44h651BDCrt4sOQACX<<fcf35cFgCvgDhg@iRR4"
}
# Evolutions
# ~~~~~
evolutions {
enabled=false
db {
default {
autoApply=false
}
}
}
# The application languages
# ~~~~~
i18n {
langs = [ "en", "en-US", "es", "es-ES", "it", "it-IT", "de", "de-DE", "fr", "fr-FR" ]
}
# Modules
# ~~~~~
modules {
enabled += be.objectify.deadbolt.java.DeadboltModule
enabled += modules.CustomDeadboltHook
enabled += "play.modules.swagger.SwaggerModule"
}
http.parser.maxMemoryBuffer = 500kB
}
# Database configuration
# ~~~~~
# You can declare as many datasources as you want.
# By convention, the default datasource is named `default`
db {
default {
# You can expose this datasource via JNDI if needed (Useful for JPA)
jndiName=DefaultDS
# Specify a connectionTestQuery. Only do this if upgrading the JDBC-Driver does not help
#hikaricp {
# connectionTestQuery="SELECT TRUE"
#}
# Default driver and URL for in-memory database
driver=org.h2.Driver
url="jdbc:h2:mem:play"
# PostgreSQL value examples
# driver=org.postgresql.Driver
# url="jdbc:postgresql://localhost:5432/appcivistcore"
username=""
password=""
hikaricp {
leakDetectionThreshold = 20000
}
}
}
# Ebean configuration
# ~~~~~
# You can declare as many Ebean servers as you want.
# By convention, the default server is named `default`
ebean {
default = ["models.*"]
}
# Logger
# ~~~~~
# You can also configure logback (http://logback.qos.ch/),
# by providing an application-logger.xml file in the conf directory.
logger {
# Root logger:
root=DEBUG
# Logger used by the framework:
play=DEBUG
# Logger provided to your application:
application=DEBUG
# AppCivist persisting Logger
appcivist=true
}
application {
baseUrl="http://testplatform.appcivist.org/backend/api" # no longer works, but used for email invitations
uiUrl="http://testplatform.appcivist.org/#" # no longer works, but used for email invitations
# Router
# ~~~~~
# Define the Router object to use for this application.
# This router will be looked up first when the application is starting up,
# so make sure this is the entry point.
# Furthermore, it's assumed your route file is named properly.
# So for an application router like `conf/my.application.Router`,
# you may need to define a router file `my.application.routes`.
# Default to Routes in the root package (and `conf/routes`)
# application.router=my.application.Routes
# Global object class
# ~~~~~
# Define the Global object class for this application.
# Default to Global in the root package.
# application.global=Global
}
# Additional configuration parameters
# ~~~~~
# Some parameters specific to our project
appcivist {
logging = false
db {
cleanBeforeStarting=false # clean data in the database before we start
loadTestUsers=true # load testing users
loadTestOrchestration=false # load the orchestration test examples
#alpha data initial-data.files = [ "initial-data/alpha/appcivist-pb-sample-basic.yml", "initial-data/alpha/appcivist-pb-sample-voting.yml", "initial-data/alpha/appcivist-pb-basic-voting-votes.yml" ]
initial-data.files = [ "initial-data/appcivist-pb-sample-basic.yml", "initial-data/appcivist-pb-sample-voting.yml", "initial-data/appcivist-pb-basic-voting-votes.yml" ]
}
dozer {
mappingFiles = ["dozerMapping.xml"]
}
services {
# Replace the following sample non-valid API secrets with correct ones
mapboxapi {
# Temporal token for MapBox API
# Requests limit = 600 req/min
token = ${?MAPBOX_API_TOKEN}
}
imgur {
clientId = ${?IMGUR_CLIENT_ID}
clientSecret = ${?IMGUR_CLIENT_SECRET}
}
aws {
access.key=${?AWS_ACCESS_KEY}
secret.key=${?AWS_SECRET_CODE}
s3.bucket=${?AWS_S3_BUCKET_NAME}
s3.endpoint=${?AWS_S3_BUCKET_ENDPOINT}
}
etherpad {
default {
serverBaseurl = "http://etherpad.littlemacondo.com"
apiKey = ${?ETHERPAD_API_KEY}
}
}
notification {
default {
serverBaseUrl = "http://localhost:3025"
apiKey = ""
}
}
recaptcha {
secret = "secret code for recaptcha service"
serverURL = "https://www.google.com/recaptcha/api/siteverify"
}
}
# Base URL to use for invitations sent by email
invitations {
baseUrl = "http://appcivist.littlemacondo.com/#"
}
}
default {
language="en-US"
}
api {
version="beta"
}
swagger {
api {
basepath=""
info = {
contact = "Cristhian Parra (cdparra [at] berkeley [dot] edu. Social Apps Lab @ UC Berkeley"
description = "AppCivist is a software platform for democratic assembly and collective action that lets users organize Assemblies, Campaign and Working Groups as spaces for contribution and decision making"
title = AppCivist Core API
#termsOfService : (String) - Terms Of Service | default : empty,
#license : (String) - Terms Of Service | default : empty,
#licenseUrl : (String) - Terms Of Service | default : empty
}
}
}
play.filters.cors {
# allow all paths
pathPrefixes = ["/"]
# allow all origins (You can specify if you want)
allowedOrigins = ["http://platform.appcivist.org", "http://testplatform.appcivist.org", "http://pb.appcivist.org", "http://testpb.appcivist.org", "http://appcivist.org", "http://www.appcivist.org", "https://platform.appcivist.org", "https://testplatform.appcivist.org", "https://pb.appcivist.org", "https://testpb.appcivist.org", "https://appcivist.org", "https://www.appcivist.org"]
allowedHttpMethods = ["OPTIONS", "GET", "POST", "PUT", "DELETE"]
# allow all headers
allowedHttpHeaders = null
}
include "play-authenticate/mine.local.conf"
include "play-authenticate/smtp.local.conf"
include "play-authenticate/local.deadbolt.conf"