This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.yaml
237 lines (237 loc) · 6.01 KB
/
config.yaml
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
---
aiohttp_settings:
client_max_size: 20971520
databases:
- db:
storage: postgresql
transaction_strategy: dbresolve_readcommitted
dsn: postgresql://postgres:secret@gcms_dev_pg:5432/guillotina
read_only: false
pool_size: 100
store_json: true
applications:
- guillotina_cms
- guillotina.contrib.cache
- guillotina.contrib.catalog.pg
host: 0.0.0.0
address: 8081
static:
- favicon.png: static/favicon.png
- assets: guillotina:static/assets
- swagger_static: guillotina.contrib.swagger:static
root_user:
password: root
auth_extractors:
- guillotina.auth.extractors.BearerAuthPolicy
- guillotina.auth.extractors.BasicAuthPolicy
- guillotina.auth.extractors.WSTokenAuthPolicy
auth_token_validators:
- guillotina.auth.validators.SaltedHashPasswordValidator
- guillotina.auth.validators.JWTValidator
redis:
host: localhost
port: 6379
jwt:
secret: secret
algorithm: HS256
jsapps:
+admin: guillotina:static/executioner
cors:
allow_origin:
- '*'
allow_methods:
- GET
- POST
- DELETE
- HEAD
- PATCH
- OPTIONS
- PUT
allow_headers:
- '*'
expose_headers:
- '*'
allow_credentials: true
max_age: 3660
global_disallowed_types:
- User
- UserManager
- Group
- GroupManager
- Item
- Container
- Folder
behaviors:
myannotationdata:
title: MyData
for: guillotina.interfaces.IItem
inherited_class: guillotina.behaviors.instance.AnnotationBehavior
properties:
mydata1:
type: guillotina.schema.TextLine
title: Text
default: Hello
required: true
mycontextdata:
title: MyLocalData
for: guillotina.interfaces.IItem
inherited_class: guillotina.behaviors.instance.ContextBehavior
properties:
mydata2:
type: guillotina.schema.TextLine
title: Text
default: Hello
contents:
mydoc:
title: My Doc
inherited_interface: guillotina.interfaces.IFolder
inherited_class: guillotina.content.Folder
add_permission: guillotina.AddContent
allowed_types:
- Image
- File
behaviors:
- guillotina.behaviors.dublincore.IDublinCore
- guillotina_cms.interfaces.base.ICMSBehavior
- guillotina_cms.interfaces.blocks.IBlocks
- guillotina_cms.interfaces.Imycontextdata
properties:
json_example:
type: guillotina.schema.JSONField
schema:
type: object
properties:
items:
type: array
title: My Json Field
text:
type: guillotina_cms.fields.richtext.RichTextField
widget: richtext
title: Text
write_permission: guillotina.Manager
index:
type: searchabletext
required: true
myoption:
type: guillotina.schema.Choice
title: My loved option
vocabulary:
guillotina: Guillotina
volto: Volto
index:
type: keyword
mysecondoption:
type: guillotina.schema.Choice
title: My loved option
vocabulary: appsettings:myoptions
index:
type: keyword
mylovedlanguage:
type: guillotina.schema.Choice
title: My loved option
vocabulary: languages
index:
type: keyword
mylovedlist:
type: guillotina.schema.List
value_type: guillotina.schema.TextLine
title: My loved action
index:
type: keyword
fieldsets:
default:
- title
- guillotina.behaviors.dublincore.IDublinCore.description
- text
- myoption
- mysecondoption
- mylovedlist
- mylovedlanguage
dates:
- guillotina.behaviors.dublincore.IDublinCore.effective_date
- guillotina.behaviors.dublincore.IDublinCore.expiration_date
ownership:
- guillotina.behaviors.dublincore.IDublinCore.creators
- guillotina.behaviors.dublincore.IDublinCore.publisher
- guillotina.behaviors.dublincore.IDublinCore.contributors
categorization:
- guillotina.behaviors.dublincore.IDublinCore.tags
- guillotina_cms.interfaces.base.ICMSBehavior.language
settings:
- guillotina_cms.interfaces.base.ICMSBehavior.hidden_navigation
- guillotina_cms.interfaces.base.ICMSBehavior.content_layout
layouts:
- document_view
- layout_view
default_blocks:
Document:
blocks:
tile1:
'@type': title
tile2:
'@type': description
tile3:
text: null
'@type': text
blocks_layout:
items:
- tile1
- tile2
- tile3
Container:
blocks:
tile1:
'@type': title
tile2:
'@type': description
tile3:
text: null
'@type': text
blocks_layout:
items:
- tile1
- tile2
- tile3
myoptions:
- - guillotina
- Also Love Guillotina
- - volto
- Also Love Volto
workflows:
basic:
initial_state: private
states:
private:
actions:
publish:
title: Publish
to: public
check_permission: guillotina.ReviewContent
set_permission:
roleperm:
- setting: Deny
role: guillotina.Anonymous
permission: guillotina.ViewContent
- setting: Deny
role: guillotina.Anonymous
permission: guillotina.AccessContent
public:
actions:
retire:
title: Retire
to: private
check_permission: guillotina.ReviewContent
set_permission:
roleperm:
- setting: AllowSingle
role: guillotina.Anonymous
permission: guillotina.ViewContent
- setting: AllowSingle
role: guillotina.Anonymous
permission: guillotina.AccessContent
workflows_content:
guillotina.interfaces.IResource: basic
guillotina_cms.content.document.IDocument: guillotina_simple_publication
guillotina_cms.interfaces.Imydoc: guillotina_simple_publication
allow_discussion_types:
- Document