diff options
| author | Bobby <[email protected]> | 2022-07-18 12:11:26 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-07-18 12:11:26 +0530 |
| commit | a560fab663aec3505188f7da235188f13e71ef3a (patch) | |
| tree | d6192cf8b02368670e7ea67573a005f1b7091bca | |
| parent | 57a57fce04eaa54933ba5f195e3c130f9d7b9aa5 (diff) | |
| download | thatcomputerscientist-a560fab663aec3505188f7da235188f13e71ef3a.tar.xz thatcomputerscientist-a560fab663aec3505188f7da235188f13e71ef3a.zip | |
Added Linux CA Route and Deploying SSL Connection to DB
| -rw-r--r-- | thatcomputerscientist/settings.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/thatcomputerscientist/settings.py b/thatcomputerscientist/settings.py index d5ce0755..f5733bdb 100644 --- a/thatcomputerscientist/settings.py +++ b/thatcomputerscientist/settings.py @@ -85,7 +85,12 @@ DATABASES = { 'USER': os.getenv('DB_USER'), 'PASSWORD': os.getenv('DB_PASSWORD'), 'HOST': os.getenv('DB_HOST'), - 'PORT': os.getenv('DB_PORT') + 'PORT': os.getenv('DB_PORT'), + 'OPTIONS': { + 'ssl': { + 'ca': os.getenv('MYSQL_ATTR_SSL_CA'), + } + } } } |
