This repository has been archived by the owner on Jan 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
RogueMek-config.groovy
115 lines (105 loc) · 4.55 KB
/
RogueMek-config.groovy
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
/**
* You can make customizations directly to this configuration script before running app server,
* or copy and modify this script somewhere else and set its absolute path as an
* Environment variable with the name ROGUEMEK_CONFIG (webapp restart required if running).
*
* e.g. ROGUEMEK_CONFIG=C:\Users\roguemek\.grails\RogueMek-config.groovy
*/
roguemek {
users { // If no users are predefined, the first user that registers will be an admin user
// admin { // optional super user administrator user to create during init
// username = "admin@roguemek.com"
// callsign = "SuperUser"
// password = "AdminAdmin"
// }
// demo { // optional initial demo user to create during init
// username = "demo@roguemek.com"
// callsign = "DemoUser"
// password = "DemoDemo"
// }
}
server {
headerMessage = "This is a RogueMek server" // the message at the top of the root index page
preloadMaps = false // set true to have all maps loaded during first server init (may take several minutes more)
// hpgTransport: some servers do not support websocket connections, set this to "long-polling" to prevent clients from trying websocket
hpgTransport = "websocket"
// hpgWebSocketPort: some servers do not put websocket on the same HTTP/HTTPS port as the main web server, use this to override
hpgWebSocketPort = "" // e.g. OpenShift uses port "8000" for WS, or "8443" for WSS
}
registration {
// Any new user attempting to register can be enabled by setting newUserEnable to one of the following settings:
// "email" // (recommended) confirmation email is sent to registered email address with a link to enable new accounts, and to reset password requests
// // NOTE: "email" requires the grails mail settings to be provided or it will fail
// "public" // registered accounts are automatically enabled
// "private" // registered accounts must be enabled by an administrator
// "disable" // only administrators can create accounts
newUserEnable = "public"
}
game {
settings {
maxUserUnits = 12 // maximum units per user in a game
maxBattleUnits = 24 // maximum units total in a game
userStagingLimit = 3 // maximum staging battles per user
}
}
external {
settings {
externalUnitLink = "http://www.sarna.net/wiki/"
}
}
}
dataSource {
// default to local h2 database
driverClassName = "org.h2.Driver"
username = "sa"
password = "" // h2 password not necessary since dbconsole requires ROOT role login to access
// url = "jdbc:h2:~/roguemekdb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE" // default h2 db location is ~ user home
// Example connection to a MySQL server using OS environment variables for the values
// NOTE: Don't forget to uncomment hibernate.query.substitutions below
// driverClassName = "com.mysql.jdbc.Driver"
// username = System.env.ROGUEMEK_DB_USERNAME
// password = System.env.ROGUEMEK_DB_PASSWORD
// url = "jdbc:mysql://"+System.env.ROGUEMEK_DB_HOST+":"+System.env.ROGUEMEK_DB_PORT+"/"+(System.env.ROGUEMEK_DB_NAME)
// Example connection to a Postgres server using OS environment variables for the values:
// driverClassName = "org.postgresql.Driver"
// username = System.env.ROGUEMEK_DB_USERNAME
// password = System.env.ROGUEMEK_DB_PASSWORD
// url = "jdbc:postgresql://"+System.env.ROGUEMEK_DB_HOST+":"+System.env.ROGUEMEK_DB_PORT+"/"+(System.env.ROGUEMEK_DB_NAME)
// Debugging options:
// logSql: true
// formatSql: true
}
// MySQL won't work unless its rand() function is referenced instead of random()
//hibernate.query.substitutions = 'random=rand()'
grails {
mail {
// Setup the mail server connection information to support email confirmation for registration and password resets
// host = "smtp.gmail.com"
// port = 465
// username = "username@gmail.com"
// password = "PASSWORD"
// props = ["mail.smtp.auth":"true",
// "mail.smtp.socketFactory.port":"465",
// "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
// "mail.smtp.socketFactory.fallback":"false"]
}
plugin {
atmosphere_meteor {
plugin {
initializeBeans {
delay = 10000 // milliseconds to delay initialization
period = 3000 // milliseconds to retry initialization based on servletContext readiness (e.g. waiting finish all BootStrap activities)
attempts = 100 // number of attempts the TimerTask will make before quitting
}
}
}
}
}
grails.plugin.springsecurity.secureChannel.definition = [
//'/**': 'REQUIRES_SECURE_CHANNEL' // Require HTTPS for all pages
]
log4j.external = {
//trace "org.hibernate.type.descriptor.sql.BasicBinder"
//debug "org.hibernate.SQL"
//debug "roguemek"
}