-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.yaml
executable file
·78 lines (73 loc) · 2.17 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
runtime: custom
threadsafe: true
api_version: 1
service: default
env: flex
beta_settings:
enable_app_engine_apis: true
resources:
memory_gb: 3.0
cpu: 1.0
manual_scaling:
instances: 2
# It seems I cannot change the path, so cannot get these requests
# to go to new paths which will reach the app container.
# Which means for now, they won't work. :(
# Waiting on https://issuetracker.google.com/issues/74128304
#
#readiness_check:
# # Changing this seems to have no effect...
# path: /my_readiness_check # should this be different for app.yaml vs batch.yaml?
# check_interval_sec: 5
# timeout_sec: 4
# failure_threshold: 2
# success_threshold: 2
# app_start_timeout_sec: 600 # seems to take a few minutes to compile regexes?
#
#liveness_check:
# path: /my_readiness_check
# check_interval_sec: 30
# timeout_sec: 4
# failure_threshold: 2
# success_threshold: 2
default_expiration: 10d
handlers:
# Unused graphql:
- url: /graphql.*
script: graphql_server.app
- url: /graphiql.*
script: graphql_server.app
- url: /static/graphql.*
script: graphql_server.app
# Builtin
- url: /_ah/queue/deferred
script: admin_apps.authorized_deferred_app
# Mapreduce/Pipeline:
- url: /_pipeline(/.*)?
script: admin_apps.authorized_pipeline_app
- url: /mapreduce/worker_callback.*
script: admin_apps.authorized_main_app
- url: /mapreduce(/.*)?
script: admin_apps.authorized_mapreduce_app
# My Admin Tools
- url: /tools/.*
script: admin_apps.authorized_main_app
- url: /admin.*
script: admin_apps.authorized_admin_app
- url: /events/admin.*
script: admin_apps.authorized_main_app
- url: /sources/admin.*
script: admin_apps.authorized_main_app
- url: /tasks/.*
script: admin_apps.authorized_main_app
- url: .*
script: main.application
skip_files:
# This is here so that the GAE dev_appserver's mtime_watcher will ignore this directory
# and therefore not complain about 'too many files'. It's different from the other lines,
# which are intended to keep files from getting pushed to the GAE server.
- .*node_modules
# We don't want any webpack file generation (into dist/ dir) triggering a reload of the appserver,
# since the appserver doesn't need/care about these files
- .*dist
- .*assets