-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.yaml
69 lines (56 loc) · 2.13 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
# This file specifies your Python application's runtime configuration
# including URL routing, versions, static file uploads, etc. See
# https://developers.google.com/appengine/docs/python/config/appconfig
# for details.
runtime: python27
api_version: 1
threadsafe: yes
# Handlers define how to route requests to your application.
handlers:
# App Engine serves and caches static files contained in the listed directories
# (and subdirectories). Uncomment and set the directory as needed.
- url: /static
static_dir: /static
- url: /css/(.*\.css)
mime_type: text/css
static_files: static/css/\1
upload: static/css/(.*\.css)
- url: /js/(.*\.js)
mime_type: text/javascript
static_files: static/js/\1
upload: static/js/(.*\.js)
- url: /vendor/(.*\.(js|css|eot|svg|ttf|woff|woff2|less|scss))
mime_type: text/css
static_files: static/vendor/\1
upload: static/vendor/(.*\.(js|css|eot|svg|ttf|woff|woff2|less|scss))
- url: /(.*\.ico)
mime_type: image/x-icon
static_files: static/img/\1
upload: static/img/(.*\.ico)
expiration: "7d"
- url: /(.*\.json)
mime_type: application/json
static_files: static/json/\1
upload: static/json/(.*\.json)
expiration: "1h"
# image files
- url: /img/(.*\.(bmp|gif|ico|jpeg|jpg|png))
static_files: static/img/\1
upload: static/img/(.*\.(bmp|gif|ico|jpeg|jpg|png))
# This handler tells app engine how to route requests to a WSGI application.
# The script value is in the format <path.to.module>.<wsgi_application>
# where <wsgi_application> is a WSGI application object.
- url: .* # This regex directs all routes to main.app
script: main.app
# Third party libraries that are included in the App Engine SDK must be listed
# here if you want to use them. See
# https://developers.google.com/appengine/docs/python/tools/libraries27 for
# a list of libraries included in the SDK. Third party libs that are *not* part
# of the App Engine SDK don't need to be listed here, instead add them to your
# project directory, either as a git submodule or as a plain subdirectory.
# TODO: List any other App Engine SDK libs you may need here.
libraries:
#- name: ssl
# version: latest
skip_files:
- ^(node_modules/.*)