Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Dec 16, 2024
1 parent 2eb0c58 commit 5e4a8f6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions config/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@
ENVIRONMENT = Environment.DEV

ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1", "192.168.0.1"]

# Database
# ------------------------------------------------------------------------------
DATABASES["default"]["HOST"] = os.getenv("POSTGRESQL_ADDON_HOST", "127.0.0.1")
DATABASES["default"]["PORT"] = os.getenv("POSTGRESQL_ADDON_PORT", "5432")
DATABASES["default"]["NAME"] = os.getenv("POSTGRESQL_ADDON_DB", "communaute")
DATABASES["default"]["USER"] = os.getenv("POSTGRESQL_ADDON_USER", "communaute")
DATABASES["default"]["PASSWORD"] = os.getenv("POSTGRESQL_ADDON_PASSWORD", "password")

# ProConnect
# ------------------------------------------------------------------------------
OPENID_CONNECT_BASE_URL = os.getenv("OPENID_CONNECT_BASE_URL","http://127.0.0.1:8080")
OPENID_CONNECT_CLIENT_ID = os.getenv("OPENID_CONNECT_CLIENT_ID","local_openid_connect")
OPENID_CONNECT_CLIENT_SECRET = os.getenv("OPENID_CONNECT_CLIENT_SECRET","password")

# SENDINBLUE / BREVO
# ---------------------------------------
SIB_URL = os.getenv("SIB_URL", "https://test.com")
Expand All @@ -31,6 +46,15 @@

AUTH_PASSWORD_VALIDATORS = [] # Avoid password strength validation in DEV.

# S3 uploads
# ------------------------------------------------------------------------------

AWS_S3_ACCESS_KEY_ID = os.getenv("CELLAR_ADDON_KEY_ID", "minioadmin")
AWS_S3_SECRET_ACCESS_KEY = os.getenv("CELLAR_ADDON_KEY_SECRET", "minioadmin")
AWS_S3_ENDPOINT_URL = (
f"{os.getenv('CELLAR_ADDON_PROTOCOL', 'http')}://{os.getenv('CELLAR_ADDON_HOST', "localhost:9000")}"
)

# Django-extensions.
# ------------------------------------------------------------------------------

Expand Down

0 comments on commit 5e4a8f6

Please sign in to comment.