Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 1.3/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@
'haystack',
)

# HTTPS verification
verify = os.environ.get("HTTPS_VERIFY", "/etc/ssl/certs/ca-certificates.crt").strip()
WIRECLOUD_HTTPS_VERIFY = True if verify.lower() == "true" else False if verify.lower() == "false" else verify

# Login/logout URLs
LOGIN_URL = reverse_lazy('login')
LOGOUT_URL = reverse_lazy('wirecloud.root')
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ The following environment variables are also honored for configuring your WireCl
- `-e KEYCLOAK_GLOBAL_ROLE=...` (default to "False")
- `-e SOCIAL_AUTH_KEYCLOAK_KEY=...` (defaults to nothing)
- `-e SOCIAL_AUTH_KEYCLOAK_SECRET=...` (defaults to nothing)
- `-e HTTPS_VERIFY=...` (True, False or path to a certificate bundle, default to
"/etc/ssl/certs/ca-certificates.crt"

In addition to those environment variables, this docker image also allows you to
configure the following Django settings using environment variables with the
Expand Down
4 changes: 4 additions & 0 deletions dev/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@
locals()[setting] = value.lower() == "true"


# HTTPS verification
verify = os.environ.get("HTTPS_VERIFY", "/etc/ssl/certs/ca-certificates.crt").strip()
WIRECLOUD_HTTPS_VERIFY = True if verify.lower() == "true" else False if verify.lower() == "false" else verify

# FIWARE & Keycloak configuration
IDM_AUTH = 'fiware' if "FIWARE_IDM_SERVER" in locals() and "SOCIAL_AUTH_FIWARE_KEY" in locals() and "SOCIAL_AUTH_FIWARE_SECRET" in locals() else None
IDM_AUTH = 'keycloak' if "KEYCLOAK_SERVER" in locals() and "KEYCLOAK_REALM" in locals() and "KEYCLOAK_KEY" in locals() and "SOCIAL_AUTH_KEYCLOAK_KEY" in locals() and "SOCIAL_AUTH_KEYCLOAK_SECRET" in locals() else IDM_AUTH
Expand Down