-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.yaml.template
53 lines (48 loc) · 1.67 KB
/
app.yaml.template
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
### App file documentation:
# https://cloud.google.com/appengine/docs/standard/python3/config/appref
### Change this section
# Service name guidelines:
# https://cloud.google.com/appengine/docs/standard/python3/configuration-files#the_default_service
service: <service name or "default">
# Instance types:
# https://cloud.google.com/appengine/docs/standard#instance_classes
instance_class: F1
# Select number of workers based on instance type:
# https://cloud.google.com/appengine/docs/standard/python3/runtime#entrypoint_best_practices
entrypoint: uvicorn multi_reaction_add.handlers:api --port $PORT --no-access-log --no-use-colors
# Default env vars:
# https://cloud.google.com/appengine/docs/standard/python3/runtime#environment_variables
env_variables:
SLACK_CLIENT_ID: "client id"
SLACK_CLIENT_SECRET: client secret
SLACK_SIGNING_SECRET: signing secret
SLACK_INSTALLATION_GOOGLE_BUCKET_NAME: multi-reaction-add-installation
SLACK_STATE_GOOGLE_BUCKET_NAME: multi-reaction-add-oauthstate
USER_DATA_BUCKET_NAME: multi-reaction-add-userdata
UVICORN_LOG_LEVEL: info
UVICORN_WORKERS: 2
UVICORN_HOST: 0.0.0.0
PYTHONUNBUFFERED: True
# Autoscaling documentation:
# https://cloud.google.com/appengine/docs/standard/python3/config/appref#scaling_elements
automatic_scaling:
min_instances: 1
max_instances: 20
target_cpu_utilization: 0.8
max_concurrent_requests: 30
### Do not change this section
runtime: python311
inbound_services:
- warmup
handlers:
- url: /slack/events
secure: always
script: auto
- url: /slack/install
secure: always
script: auto
- url: /slack/oauth_redirect
secure: always
script: auto
- url: /img
static_dir: resources/img