-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
app.yaml
48 lines (43 loc) · 1.3 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
runtime: python312
entrypoint: gunicorn -b :$PORT main:app
default_expiration: 3h
handlers:
# Add longer caching for fonts
- url: /static/fonts/(.*\.(woff|woff2))$
static_files: static/fonts/\1
upload: static/fonts/.*\.(woff|woff2)$
secure: always
expiration: 365d
http_headers:
strict-transport-security: max-age=31556926; includeSubDomains
x-content-type-options: nosniff
vary: Accept-Encoding
# Set the UTF-8 charset for CSS and JS files.
# Makes the assumption that only CSS and JS files existing in the relevant dirs
# but avoids complex regexes
- url: /static/css
static_dir: static/css
secure: always
http_headers:
content-type: text/css; charset=utf-8
strict-transport-security: max-age=31556926; includeSubDomains
x-content-type-options: nosniff
vary: Accept-Encoding
- url: /static/js
static_dir: static/js
secure: always
http_headers:
content-type: application/javascript; charset=utf-8
strict-transport-security: max-age=31556926; includeSubDomains
x-content-type-options: nosniff
vary: Accept-Encoding
- url: /static
static_dir: static
secure: always
http_headers:
strict-transport-security: max-age=31556926; includeSubDomains
x-content-type-options: nosniff
vary: Accept-Encoding
- url: /.*
script: auto
secure: always