-
Notifications
You must be signed in to change notification settings - Fork 3
/
app.yaml
135 lines (119 loc) · 3.31 KB
/
app.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
application: mediawiki-on-gae
version: mediawiki-on-gae-v1
runtime: php55
api_version: 1
handlers:
# Static pages
- url: /wiki/(.*\.(htm$|html$|css$|js$))
static_files: wiki/\1
upload: wiki/(.*\.(htm$|html$|css$|js$))
application_readable: true
# Serve images as static resources.
- url: /wiki/resources/(.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg))$
static_files: wiki/resources/\1
upload: wiki/resources/.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg)
application_readable: true
# Serve images as static resources.
- url: /wiki/vendor/(.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg))$
static_files: wiki/vendor/\1
upload: wiki/vendor/.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg)
application_readable: true
# Serve images as static resources.
- url: /wiki/skins/(.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg))$
static_files: wiki/skins/\1
upload: wiki/skins/.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg)
application_readable: true
- url: /favicon.ico
static_files: favicon.ico
upload: favicon.ico
application_readable: true
- url: /robots.txt
static_files: robots.txt
upload: robots.txt
application_readable: true
# Misc files.
- url: /(.+\.(xsd|txt|sql|))$
static_files: wiki/\1
upload: wiki/.+\.(xsd|txt|sql)
application_readable: true
# Serve MediaWiki installation scripts
# can be removed after installation
- url: /wiki/mw-config/
script: wiki/mw-config/index.php
secure: always
# Serve mw-config images as static resources.
- url: /wiki/mw-config/images/(.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg))$
static_files: wiki/mw-config/images/\1
upload: wiki/mw-config/images/.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg)
application_readable: true
# Serve images from Google Cloud Storage
- url: /wiki/images/(.*\.(ico|jpg|jpeg|png|gif|woff|ttf|otf|eot|svg))$
script: wiki/extensions/CloudStorage/GoogleCloudStorageFileServe.php
secure: optional
# Serve php5 scripts.
- url: /wiki/(.+\.php5)$
script: wiki/\1
# Serve php scripts.
- url: /wiki/(.+\.php)$
script: wiki/\1
#
- url: (.*)/(w|W)iki/(.*)
script: wiki/index.php
secure: optional
# redirect root to wiki path
- url: /?$
script: wiki/index.php
secure: optional
# 404
- url: /(.*)$
# script: /wiki/Special:Error404
#
#- url: /wiki/Special:Error404
script: wiki/index.php
skip_files:
- ^(.*/)?\.zip$
- ^(.*/)?\.bat$
- ^(.*/)?\.sh$
- ^(.*/)?\.md$
- ^(.*/)?\.htaccess$
- ^(.*/)?\.sample$
- ^(.*/)?README$
- ^(.*/)?COPYING$
- ^(.*/)?.git
- wiki/tests
- wiki/skins/Modern
- wiki/skins/MonoBook
- wiki/skins/CologneBlue
- wiki/docs
#- wiki/extensions/Cite
- wiki/extensions/CiteThisPage
- wiki/extensions/ConfirmEdit
- wiki/extensions/Gadgets
- wiki/extensions/ImageMap
- wiki/extensions/InputBox
- wiki/extensions/Interwiki
- wiki/extensions/LocalisationUpdate
- wiki/extensions/Nuke
- wiki/extensions/ParserFunctions
- wiki/extensions/PdfHandler
- wiki/extensions/Poem
- wiki/extensions/README
- wiki/extensions/Renameuser
- wiki/extensions/SpamBlacklist
#- wiki/extensions/SyntaxHighlight_GeSHi
- wiki/extensions/TitleBlacklist
#- wiki/extensions/WikiEditor
#- wiki/extensions/Special404
- wiki/serialized
- wiki/COPYING
- wiki/CREDITS
- wiki/FAQ
- wiki/HISTORY
- wiki/INSTALL
- wiki/README(.*)
- wiki/UPGRADE
- wiki/.*tests.*
- wiki/Gemfile.lock
#- wiki/mw-config
- wiki/images/*
#- wiki/maintenance