-
Notifications
You must be signed in to change notification settings - Fork 23
/
zappa_settings.yml
111 lines (110 loc) · 4.06 KB
/
zappa_settings.yml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
prod:
aws_region: eu-north-1
django_settings: onlineweb4.settings
project_name: onlineweb4
s3_bucket: zappa-4zzd2i1dt
domain: old.online.ntnu.no
memory_size: 1024
debug: false
cors: true
keep_warm_expression: rate(5 minutes)
certificate_arn: arn:aws:acm:us-east-1:891459268445:certificate/f42ea573-15bb-43a0-a549-7d8fe834a1dc
events:
- function: apps.events.mommy.set_event_marks
expression: cron(0 8 ? * * *)
- function: apps.feedback.mommy.feedback_mail
expression: cron(0 8 ? * * *)
- function: apps.payment.mommy.payment_reminder
expression: cron(30 7 ? * * *)
- function: apps.payment.mommy.payment_delay_handler
expression: cron(45 7 ? * * *)
extra_permissions:
- Effect: Allow
Action:
- s3:*
Resource: arn:aws:s3:::onlineweb4-prod/*
- Effect: Allow
Action:
- ses:*
Resource: "*"
environment_variables:
OW4_DJANGO_DEBUG: 'False'
OW4_ENVIRONMENT: Production
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
OW4_DATABASE_NAME: onlineweb4
OW4_SENTRY_DSN: https://df3629be91944be79c790681d9a57f76:[email protected]/204971
OW4_EVENTS_ENABLE_CAPTCHA: 'True'
OW4_DJANGO_ALLOWED_HOSTS: online.ntnu.no,old.online.ntnu.no,*.execute-api.eu-north-1.amazonaws.com
OW4_DJANGO_BASE_URL: https://old.online.ntnu.no
OW4_GSUITE_CREDENTIALS_PATH: "/tmp/secrets/gsuite-creds.json"
OW4_GSUITE_ENABLED: 'True'
OW4_GSUITE_ACCOUNTS_ENABLED: 'True'
OW4_GSUITE_ACCOUNTS_ENABLE_INSERT: 'True'
OW4_GSUITE_DELEGATED_ACCOUNT: [email protected]
OW4_GSUITE_SYNC_ENABLED: 'True'
OW4_GSUITE_SYNC_ENABLE_INSERT: 'True'
OW4_GSUITE_SYNC_ENABLE_DELETE: 'True'
OW4_DP_STUDY_REDIRECT_URI: https://old.online.ntnu.no/dataporten/study/callback/
OW4_DP_STUDY_TESTING: 'False'
OW4_WEB_PUSH_ENABLED: 'True'
OW4_DJANGO_EMAIL_BACKEND: django_ses.SESBackend
OW4_ZAPPA: 'True'
OW4_USE_S3: 'True'
OW4_S3_BUCKET_NAME: onlineweb4-prod
aws_environment_variables:
VAULT_ADDR: https://vault.online.ntnu.no:8200
VAULT_AUTH_PROVIDER: aws
VAULT_AUTH_ROLE: ow4
VAULT_SECRET_PATH_DB: postgres/creds/ow4
VAULT_SECRET_FILE_DB: "/tmp/secrets/db.json"
VAULT_SECRET_PATH_GSUITE: secret/data/onlineweb4/gsuite-creds
VAULT_SECRET_FILE_GSUITE: "/tmp/secrets/gsuite-creds.json"
VAULT_SECRET_PATH_ENV: secret/data/onlineweb4/zappa-env
VAULT_SECRET_FILE_ENV: "/tmp/secrets/env.json"
dev:
aws_region: eu-north-1
django_settings: onlineweb4.settings
project_name: onlineweb4
s3_bucket: zappa-4zzd2i1dt
domain: dev.online.ntnu.no
memory_size: 1024
keep_warm: false
debug: false
cors: true
certificate_arn: arn:aws:acm:us-east-1:891459268445:certificate/f42ea573-15bb-43a0-a549-7d8fe834a1dc
extra_permissions:
- Effect: Allow
Action:
- s3:*
Resource: arn:aws:s3:::onlineweb4-dev/*
environment_variables:
OW4_DJANGO_DEBUG: 'False'
OW4_ENVIRONMENT: Dev
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
OW4_SENTRY_DSN: https://df3629be91944be79c790681d9a57f76:[email protected]/204971
OW4_EVENTS_ENABLE_CAPTCHA: 'True'
OW4_DJANGO_ALLOWED_HOSTS: dev.online.ntnu.no,*.execute-api.eu-north-1.amazonaws.com
OW4_DJANGO_BASE_URL: https://dev.online.ntnu.no
OW4_GSUITE_ENABLED: 'True'
OW4_GSUITE_ACCOUNTS_ENABLED: 'True'
OW4_GSUITE_ACCOUNTS_ENABLE_INSERT: 'False'
OW4_GSUITE_DELEGATED_ACCOUNT: [email protected]
OW4_GSUITE_SYNC_ENABLED: 'False'
OW4_GSUITE_SYNC_ENABLE_INSERT: 'False'
OW4_GSUITE_SYNC_ENABLE_DELETE: 'False'
OW4_DP_STUDY_REDIRECT_URI: https://dev.online.ntnu.no/dataporten/study/callback/
OW4_DP_STUDY_TESTING: 'True'
OW4_ZAPPA: 'True'
OW4_USE_S3: 'True'
OW4_S3_BUCKET_NAME: onlineweb4-dev
aws_environment_variables:
VAULT_ADDR: https://vault.online.ntnu.no:8200
VAULT_AUTH_PROVIDER: aws
VAULT_AUTH_ROLE: ow4dev
VAULT_SECRET_PATH_DB: postgres/creds/ow4dev
VAULT_SECRET_FILE_DB: "/tmp/secrets/db.json"
VAULT_SECRET_PATH_ENV: secret/data/onlineweb4/dev/zappa-env
VAULT_SECRET_FILE_ENV: "/tmp/secrets/env.json"