Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
concrexit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
thalia
concrexit
Merge requests
!1086
Base64 decode Firebase credentials
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Base64 decode Firebase credentials
firebase-base64
into
master
Overview
0
Commits
1
Changes
1
Merged
Ghost User
requested to merge
firebase-base64
into
master
6 years ago
Overview
0
Commits
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
version 2
f6fb7003
6 years ago
version 1
66f1ab76
6 years ago
master (base)
and
latest version
latest version
4c79d2db
1 commit,
6 years ago
version 2
f6fb7003
1 commit,
6 years ago
version 1
66f1ab76
1 commit,
6 years ago
1 file
+
5
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
website/thaliawebsite/settings/production.py
+
5
−
2
Options
@@ -8,6 +8,7 @@ This file is loaded by __init__.py if the environment variable
See https://docs.djangoproject.com/en/dev/howto/deployment/checklist/
"""
import
base64
import
json
import
os
@@ -81,9 +82,11 @@ MEMBERS_SENTRY_API_SECRET = os.environ.get('MEMBERS_SENTRY_API_SECRET', '')
GOOGLE_MAPS_API_KEY
=
os
.
environ
.
get
(
'
GOOGLE_MAPS_API_KEY
'
,
''
)
GOOGLE_MAPS_API_SECRET
=
os
.
environ
.
get
(
'
GOOGLE_MAPS_API_SECRET
'
,
''
)
FIREBASE_CREDENTIALS
=
os
.
environ
.
get
(
'
FIREBASE_CREDENTIALS
'
,
'
{}
'
)
if
FIREBASE_CREDENTIALS
.
startswith
(
'
{
'
):
FIREBASE_CREDENTIALS
=
json
.
loads
(
FIREBASE_CREDENTIALS
)
if
not
(
FIREBASE_CREDENTIALS
==
'
{}
'
):
FIREBASE_CREDENTIALS
=
base64
.
urlsafe_b64decode
(
FIREBASE_CREDENTIALS
)
FIREBASE_CREDENTIALS
=
json
.
loads
(
FIREBASE_CREDENTIALS
)
if
os
.
environ
.
get
(
'
DJANGO_SSLONLY
'
):
SECURE_SSL_REDIRECT
=
True
Loading