forked from geoscixyz/gpg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.yaml
123 lines (105 loc) · 2.32 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
# application: gpggeosci
# version: 1
runtime: python27
api_version: 1
threadsafe: yes
handlers:
# cert
# - url: /.well-known/acme-challenge
# static_dir: letsencrypt
# favicon
- url: /favicon\.ico
static_files: gpg.ico
upload: gpg\.ico
secure: always
# all css
- url: /(.*\.css)
mime_type: text/css
static_files: _build/html/\1
upload: _build/html/(.*\.css)
secure: always
# webfonts
- url: /(.*\.(eot|svg|ttf|woff|woff2|otf))
static_files: _build/html/\1
upload: _build/html/(.*\.(eot|svg|ttf|woff|woff2|otf))
secure: always
# javascript
- url: /(.*\.js)
mime_type: text/javascript
static_files: _build/html/\1
upload: _build/html/(.*\.js)
secure: always
# plain text source
- url: /(.*\.txt)
mime_type: text/plain
static_files: _build/html/\1
upload: _build/html/(.*\.txt)
secure: always
# python source files
- url: /(.*\.py)
static_files: _build/html/\1
upload: _build/html/(.*\.py)
secure: always
# images
- url: /_images/(.*\.(gif|png|jpg|ico))
static_files: _build/html/_images/\1
upload: _build/html/_images/(.*\.(gif|png|jpg|ico))
secure: always
# redirect en/latest traffic
- url: /en/latest/(.*\.html)
script: gpggeosci.app
secure: always
# raw html
- url: /(.*\.html)
mime_type: text/html
static_files: _build/html/\1
upload: _build/html/(.*\.html)
secure: always
# serve index files
- url: /(.+)/
static_files: _build/html/\1/index.html
upload: _build/html/(.+)/index.html
secure: always
- url: /(.+)
static_files: _build/html/\1/index.html
upload: _build/html/(.+)/index.html
secure: always
- url: /
static_files: _build/html/index.html
upload: _build/html/index.html
secure: always
- url: /.*
static_files: _templates/error.html
upload: _templates/error.html
secure: always
- url: .*
script: gpggeosci.app
secure: always
# Recommended file skipping declaration from the GAE tutorials
skip_files:
- ^(.*/)?app\.yaml
- ^(.*/)?app\.yml
- ^(.*/)?#.*#
- ^(.*/)?.*~
- ^(.*/)?.*\.py[co]
- ^(.*/)?.*/RCS/.*
- ^(.*/)?\..*
- ^(.*/)?tests$
- ^(.*/)?test$
- ^test/(.*/)?
- ^COPYING.LESSER
- ^README\..*
- \.gitignore
- ^\.git/.*
- \.*\.lint$
- ^(.*/)?.*\.doctree$
- ^(.*)\.docx
libraries:
- name: webapp2
version: "2.5.2"
- name: PIL
version: "1.1.7"
- name: numpy
version: "latest"
- name: jinja2
version: "latest"