-
Notifications
You must be signed in to change notification settings - Fork 0
/
puzzleweaver.toml
159 lines (134 loc) · 4.81 KB
/
puzzleweaver.toml
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
[serviceweaver]
name = "PuzzleWeaver"
binary = "../../../../bin/puzzleweaver"
[single]
listeners.web = { address = "localhost:8080" }
[multi]
listeners.web = { address = "localhost:8080" }
["github.com/ServiceWeaver/weaver/Main"]
domain = "localhost"
port = "8080"
sessiontimeout = 1200
servicetimeout = "5s"
maxmultipartmemory = 0
dateformat = "2/1/2006 15:04:05"
pagesize = 3
extractsize = 200
feedformat = "rss"
feedsize = 100
fsconf = { kind = "local" }
staticpath = "static"
faviconpath = "favicon.ico"
page404url = "/notFound"
profilegroupid = 0
profiledefaultpicturepath = "static/images/unknownuser.png"
# the first locale item is used as default
locales = [
{ lang = "fr-FR", picturepath = "images/Flag_of_France.webp" },
{ lang = "en-US", picturepath = "images/Flag_of_the_United_Kingdom.png" },
]
staticpages = [
{ groupId = 0, hidden = true, locations = [
"notFound",
] },
{ groupId = 0, locations = [
"about/",
"about/faq",
] },
]
widgetpages = [
{ path = "about/wiki", widgetref = "wiki1" },
{ path = "about/faq/wiki2", widgetref = "wiki2" },
{ path = "wiki3", widgetref = "wiki3" },
{ path = "blog", widgetref = "blog" },
{ path = "forum", widgetref = "forum" },
{ path = "gallery", widgetref = "gallery" },
]
ginreleasemode = true
["github.com/ServiceWeaver/weaver/Main".widgets.wiki1]
kind = "wiki"
objectid = 1
groupid = 2
["github.com/ServiceWeaver/weaver/Main".widgets.wiki2]
kind = "wiki"
objectid = 2
groupid = 2
templates = ["Welcome", "wiki2/view", "wiki2/edit", "wiki2/list"]
["github.com/ServiceWeaver/weaver/Main".widgets.wiki3]
kind = "wiki"
objectid = 3
groupid = 3
["github.com/ServiceWeaver/weaver/Main".widgets.blog]
kind = "blog"
objectid = 4
groupid = 4
["github.com/ServiceWeaver/weaver/Main".widgets.forum]
kind = "forum"
objectid = 5
groupid = 5
["github.com/ServiceWeaver/weaver/Main".widgets.gallery]
kind = "custom/gallery"
objectid = 6
groupid = 0
["github.com/dvaumoron/puzzleweaver/serviceimpl/session/SessionService"]
sessiontimeout = "1260s"
retrynumber = 100
redisaddress = "localhost:6379"
redisuser = ""
redispassword = ""
redisdbnum = 0
debug = false
["github.com/dvaumoron/puzzleweaver/serviceimpl/templates/TemplateService"]
alllang = ["fr-FR", "en-US"]
fsconf = { kind = "local" }
componentspath = "templatedata/templates/components"
viewspath = "templatedata/templates/views"
localefilepath = "templatedata/locales/messages_{{lang}}.properties"
dateformat = "2/1/2006 15:04:05"
["github.com/dvaumoron/puzzleweaver/serviceimpl/settings/SettingsService"]
mongoaddress = "mongodb://localhost:27017"
mongodatabasename = "settingsDB"
["github.com/dvaumoron/puzzleweaver/serviceimpl/passwordstrength/PasswordStrengthService"]
defaultpassword = "Password@1234"
alllang = ["fr-FR", "en-US"]
fsconf = { kind = "local" }
rulefilepath = "static/rules/rules_{{lang}}.txt"
["github.com/dvaumoron/puzzleweaver/serviceimpl/salt/SaltService"]
redisaddress = "localhost:6379"
redisuser = ""
redispassword = ""
redisdbnum = 2
saltlen = 64
["github.com/dvaumoron/puzzleweaver/serviceimpl/login/RemoteLoginService"]
databasekind = "postgres"
databaseaddress = "host=localhost user=postgres dbname=logindb port=5432 sslmode=disable"
["github.com/dvaumoron/puzzleweaver/serviceimpl/admin/AdminService"]
databasekind = "postgres"
databaseaddress = "host=localhost user=postgres dbname=rightdb port=5432 sslmode=disable"
fsconf = { kind = "local" }
opamodulepath = "static/auth_rule.rego"
permissiongroups = [
{ id = 2, name = "wikiGroup1" },
{ id = 3, name = "wikiGroup2" },
{ id = 4, name = "blogGroup" },
{ id = 5, name = "forumGroup" },
]
["github.com/dvaumoron/puzzleweaver/serviceimpl/profile/RemoteProfileService"]
mongoaddress = "mongodb://localhost:27017"
mongodatabasename = "profilesDB"
["github.com/dvaumoron/puzzleweaver/serviceimpl/forum/RemoteForumService"]
databasekind = "postgres"
databaseaddress = "host=localhost user=postgres dbname=forumdb port=5432 sslmode=disable"
["github.com/dvaumoron/puzzleweaver/serviceimpl/markdown/MarkdownService"]
# no configuration needed for markdown
["github.com/dvaumoron/puzzleweaver/serviceimpl/blog/RemoteBlogService"]
mongoaddress = "mongodb://localhost:27017"
mongodatabasename = "blogsDB"
["github.com/dvaumoron/puzzleweaver/serviceimpl/wiki/RemoteWikiService"]
mongoaddress = "mongodb://localhost:27017"
mongodatabasename = "wikisDB"
["github.com/dvaumoron/puzzleweaver/serviceimpl/customwidget/CustomWidgetService"]
gallerymongoaddress = "mongodb://localhost:27017"
gallerymongodatabasename = "galleriesDB"
defaultpagesize = 2
keytovalues.test = "toto"