forked from cdhigh/KindleEar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
worker.yaml
48 lines (38 loc) · 979 Bytes
/
worker.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: python38
service: worker
#Adjust this if "out of memory"
#B1: 384MB/600MHz/manual_scaling
#B2: 768MB/1.2GHz/manual_scaling
#B4: 1536MB/2.4GHz/manual_scaling
#B4_1G: 3072MB/2.4GHz/manual_scaling
#B8: 3072MB/4.8GHz/manual_scaling
instance_class: B2
basic_scaling:
max_instances: 1
idle_timeout: 15m
app_engine_apis: true
entrypoint: gunicorn -b :$PORT -w 2 --timeout 1800 main:app
inbound_services:
- mail
- mail_bounce
env_variables:
KE_TEMP_DIR: "/tmp"
DATABASE_URL: "datastore"
handlers:
- url: /robots.txt
static_files: application/static/robots.txt
upload: application/static/robots.txt
- url: /favicon.ico
static_files: application/static/favicon.ico
upload: application/static/favicon.ico
mime_type: image/x-icon
- url: /static
static_dir: application/static
- url: /images
static_dir: application/images
- url: /recipes
static_dir: application/recipes
- url: /.*
secure: always
redirect_http_response_code: 301
script: auto