forked from schemaorg/schemaorg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webschemas.yaml
221 lines (181 loc) · 4.99 KB
/
webschemas.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
# application: webschemas-g
# usage: gcloud app deploy webschemas.yaml --project webschemas-g
runtime: python27
api_version: 1
threadsafe: true
#automatic_scaling:
# min_idle_instances: 2
basic_scaling:
max_instances: 10
idle_timeout: 10m
inbound_services:
- warmup
env_variables:
TARGETSITE: 'webschemas.org'
PRODSITEDEBUG: 'False'
CONFIGFILE: 'sdoconfig.json'
FORCEINDEXPAGES: 'False'
DEVELOPVERSION: 'True'
MOREBLOCK: 'True'
WARMUPSTATE: 'Auto' # 'Off', 'On', 'Auto' - Off for localhost, On elsewhere
STAYINEXTENTION: 'False'
PAGESTOREMODE: 'CLOUDSTORE' # 'INMEM' (In instance memory), 'NDBSHARED' (NDB shared - accross instances), 'CLOUDSTORE' (Cloudstorage files)
EXAMPLESTOREMODE: 'INMEM' # 'INMEM', 'NDBSHARED'
TIMESTAMPSTOREMODE: 'CLOUDSTORE' # 'INMEM', 'NDBSHARED', 'CLOUDSTORE'
# CACHE_CONTROL: 'public, max-age=600'
CACHE_CONTROL: 'no-cache'
SUBDOMAINS: 'False' #'False' no subdomains, 'True' for pending.schema.org, bib.schema.org etc.
handlers:
- url: /.*favicon.ico
static_files: docs/favicon.ico
upload: docs/favicon.ico
mime_type: image/x-icon
application_readable: True
secure: always
redirect_http_response_code: 301
- url: /robots.txt
static_files: docs/robots.txt
upload: docs/robots.txt
secure: always
redirect_http_response_code: 301
mime_type: text/plain
- url: /docs/schema_org_rdfa.html
static_files: data/schema.rdfa
upload: data/schema.rdfa
application_readable: True
mime_type: text/html
secure: always
redirect_http_response_code: 301
- url: /docs/jsonldcontext.json.*
script: sdoapp.app
secure: always
redirect_http_response_code: 301
- url: /docs/full.*.html
script: sdoapp.app
secure: always
redirect_http_response_code: 301
- url: /docs/schemas.html
script: sdoapp.app
secure: always
redirect_http_response_code: 301
- url: /docs/developers.html
script: sdoapp.app
secure: always
redirect_http_response_code: 301
- url: /docs/tree.json.*
script: sdoapp.app
secure: always
redirect_http_response_code: 301
# Use for /docs when PAGESTOREMODE not set to CLOUDSTORE
#- url: /docs
# static_dir: docs
# application_readable: True
# secure: always
# redirect_http_response_code: 301
# Use for /docs when PAGESTOREMODE set to CLOUDSTORE
- url: /docs
script: sdoapp.app
secure: always
redirect_http_response_code: 301
- url: /.*docs/*
static_dir: docs
application_readable: True
secure: always
redirect_http_response_code: 301
#- url: /
# static_files: static/index.html
# upload: static/index.html
# application_readable: True
- url: /admin/refresh
login: required
script: sdoapp.app
- url: /admin
static_dir: admin
application_readable: True
- url: /search_files
static_dir: static/search_files
secure: always
redirect_http_response_code: 301
- url: /version/build-latest/.*
script: sdoapp.app
secure: always
redirect_http_response_code: 301
- url: /version/latest/.*
script: sdoapp.app
secure: always
redirect_http_response_code: 301
- url: /(version/[^/]*/)$
script: sdoapp.app
secure: always
redirect_http_response_code: 301
- url: /(version/([^/]*))$
script: sdoapp.app
secure: always
redirect_http_response_code: 301
- url: /version/
script: sdoapp.app
secure: always
redirect_http_response_code: 301
- url: /version/(.*/.*\.rdfa)
mime_type: text/html
static_files: data/releases/\1
upload: data/releases/(.*/.*\.rdfa)
application_readable: True
secure: always
redirect_http_response_code: 301
- url: /version/(.*/.*\.ttl)
mime_type: application/x-turtle
static_files: data/releases/\1
upload: data/releases/(.*/.*\.ttl)
application_readable: True
secure: always
redirect_http_response_code: 301
- url: /version/(.*/.*\.jsonld)
mime_type: application/ld+json
static_files: data/releases/\1
upload: data/releases/(.*/.*\.jsonld)
application_readable: True
secure: always
redirect_http_response_code: 301
- url: /version/(.*/.*\.rdf)
mime_type: application/rdf+xml
static_files: data/releases/\1
upload: data/releases/(.*/.*\.rdf)
application_readable: True
secure: always
redirect_http_response_code: 301
- url: /version/(.*/.*\.nt)
mime_type: application/n-triples
static_files: data/releases/\1
upload: data/releases/(.*/.*\.nt)
application_readable: True
secure: always
redirect_http_response_code: 301
- url: /version/(.*/.*\.nq)
mime_type: application/n-quads
static_files: data/releases/\1
upload: data/releases/(.*/.*\.nq)
application_readable: True
secure: always
redirect_http_response_code: 301
- url: /version/(.*/.*\.csv)
mime_type: text/csv
static_files: data/releases/\1
upload: data/releases/(.*/.*\.csv)
application_readable: True
secure: always
redirect_http_response_code: 301
- url: /version/*/*
static_dir: data/releases/
application_readable: True
secure: always
redirect_http_response_code: 301
- url: /.*
script: sdoapp.app
secure: always
redirect_http_response_code: 301
libraries:
- name: webapp2
version: 2.5.2
- name: jinja2
version: 2.6