This commit is contained in:
wh1te909
2022-04-05 22:44:41 +00:00
parent e50e0626fa
commit 241fe41756

View File

@@ -12,8 +12,10 @@ class Command(BaseCommand):
self.stdout.write("Creating configuration for nats-api...")
db = settings.DATABASES["default"]
if hasattr(settings, "DB_SSL") or "DB_SSL" in os.environ:
if hasattr(settings, "DB_SSL"):
ssl = settings.DB_SSL
elif "DB_SSL" in os.environ:
ssl = os.getenv("DB_SSL")
else:
ssl = "disable"