-
Notifications
You must be signed in to change notification settings - Fork 4
/
application.conf
150 lines (114 loc) · 4.67 KB
/
application.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
##############################################################################
# The main properties file to configure your application
#
# Properties can be prefixed by "%".
# "%"" matches a mode you can set as system property. For instance when you
# are using maven you can do: mvn -Dmode = test jetty:run
#
# Using that the following property:
# %test.myproperty = test property
# would overwrite the property
# myproperty = my property
#
# You can define as many environments as you want. Simply set them in the mode.
##############################################################################
## ------------------------------
## Standalone/SuperDev Mode Settings
## ------------------------------
## Enable the HTTPS port only.
ninja.port = 8080
ninja.ssl.port = 8443
## Use Ninja's built-in key store/trust store for all modes.
ninja.ssl.keystore.uri = classpath:/ninja/standalone/ninja-development.p12
ninja.ssl.keystore.password = password
ninja.ssl.truststore.uri = classpath:/ninja/standalone/ninja-development.p12
ninja.ssl.truststore.password = password
## The context path of the web app, for example "/posters".
ninja.context =
## ------------------------------
## Log System
## ------------------------------
logback.configurationFile = conf/logback.xml
%dev.logback.configurationFile = conf/logback_dev.xml
## ------------------------------
## host and port configuration
## ------------------------------
application.url = localhost
application.port.http = 8080
application.port.https = 8443
#application.url.http = http://${application.url}:${application.port.http}
#application.url.https = https://${application.url}:${application.port.https}
application.url.http =
application.url.https =
## ------------------------------
## starter configuration
## ------------------------------
# delete all tables and get an empty database
starter.droptables = false
# import a dummy customer, which is set in assets/files/customer.xml
starter.importCustomer = true
## ------------------------------
## locale properties
## ------------------------------
#ISO Language Code, optionally followed by a valid ISO Country Code.
application.languages = en
# currency, e.g. $, €
application.currency = $
# shipping costs
application.shippingCosts = 7.00
# tax
application.tax = 0.06
# unit of length, e.g. cm, in
application.unitLength = in
## ------------------------------
## Ebean configuration
## ------------------------------
# we use a embedded ebeans in regular config
ebean.datasource.databaseUrl = jdbc:h2:./db/posters;DB_CLOSE_DELAY=-1;AUTO_SERVER=TRUE
# in memory db when testing:
%test.ebean.datasource.databaseUrl = jdbc:h2:mem:tests;DB_CLOSE_DELAY=-1
# database username
ebean.datasource.username = sa
# database password
ebean.datasource.password =
# db-driver
ebean.datasource.databaseDriver = org.h2.Driver
ebean.logging = all
# add additional Models which were not located at package models.* here
ebean.models = models.BillingAddress,models.Cart,models.CartProduct,models.CreditCard,models.Customer,models.Order,models.OrderProduct,models.PosterSize,models.Product,models.ProductPosterSize,models.ShippingAddress,models.SubCategory,models.TopCategory, models_backoffice.Backofficeuser
# generates and runs the ddl
ebean.ddl.generate = false
ebean.ddl.run = false
%dev.ebean.ddl.generate = false
%dev.ebean.ddl.run = false
%test.ebean.ddl.generate = true
%test.ebean.ddl.run = true
ebean.datasource.minConnections = 1
ebean.datasource.maxConnections = 25
ebean.datasource.isolationlevel = read_committed
ebean.datasource.heartbeatsql = select 1
## ------------------------------
## application properties
## ------------------------------
application.name = demo poster store
application.version = 2.4.0
application.cookie.prefix = NINJA
application.basedir =
application.secret = 234523453tsfgdfgsdgfw345g
application.session.expire_time_in_seconds = 3600
application.session.send_only_if_changed = true
application.session.transferred_over_https_only = false
# defines, how many products should be shown on one page
application.pageSize = 8
## ------------------------------
## regular expressions
## ------------------------------
regex.zip = [0-9]+
regex.name = [\u00c4\u00e4\u00d6\u00f6\u00dc\u00fc\u00dfA-Za-z ]+
regex.creditCard = 4[0-9]{12}(?:[0-9]{3})?
regex.email = [\u00c4\u00e4\u00d6\u00f6A\u00dc\u00fc\u00dfA-Za-z0-9._%+-]+@[\u00c4\u00e4\u00d6\u00f6A\u00dc\u00fc\u00dfA-Za-z0-9.-]+.[A-Za-z]{2,4}
regex.productCount = [0-9]{1,3}
## ------------------------------
## Additional MIME types
## ------------------------------
mimetype.webp = image/webp