forked from attendee-labs/attendee
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit_env.py
More file actions
26 lines (17 loc) · 666 Bytes
/
init_env.py
File metadata and controls
26 lines (17 loc) · 666 Bytes
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
from cryptography.fernet import Fernet
from django.core.management.utils import get_random_secret_key
def generate_encryption_key():
return Fernet.generate_key().decode("utf-8")
def generate_django_secret_key():
return get_random_secret_key()
def main():
credentials_key = generate_encryption_key()
django_key = generate_django_secret_key()
print(f"CREDENTIALS_ENCRYPTION_KEY={credentials_key}")
print(f"DJANGO_SECRET_KEY={django_key}")
print("AWS_RECORDING_STORAGE_BUCKET_NAME=")
print("AWS_ACCESS_KEY_ID=")
print("AWS_SECRET_ACCESS_KEY=")
print("AWS_DEFAULT_REGION=us-east-1")
if __name__ == "__main__":
main()