SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
42bbdafe
Commit
42bbdafe
authored
7 years ago
by
Jorran de Wit
Browse files
Options
Downloads
Patches
Plain Diff
Add new production server settings file
parent
d6649cda
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SciPost_v1/settings/production_2.py
+48
-0
48 additions, 0 deletions
SciPost_v1/settings/production_2.py
with
48 additions
and
0 deletions
SciPost_v1/settings/production_2.py
0 → 100644
+
48
−
0
View file @
42bbdafe
# Production Webfaction with ip 87.247.240.135
# Created Dec 29th, 2017
# Will eventually replace `SciPost_v1/settings/production.py`
from
.base
import
*
# THE MAIN THING HERE
DEBUG
=
False
# CERTFILE = get_secret("CERTFILE")
ALLOWED_HOSTS
=
[
'
www.scipost.org
'
,
'
scipost.org
'
,
'
87.247.240.135
'
]
# Static and media
STATIC_ROOT
=
'
/home/scipost/webapps/scipost_static/
'
MEDIA_ROOT
=
'
/home/scipost/webapps/scipost_media/
'
# Recaptcha
RECAPTCHA_PUBLIC_KEY
=
get_secret
(
"
GOOGLE_RECAPTCHA_PUBLIC_KEY
"
)
RECAPTCHA_PRIVATE_KEY
=
get_secret
(
"
GOOGLE_RECAPTCHA_PRIVATE_KEY
"
)
WEBPACK_LOADER
[
'
DEFAULT
'
][
'
CACHE
'
]
=
True
WEBPACK_LOADER
[
'
DEFAULT
'
][
'
BUNDLE_DIR_NAME
'
]
=
'
/home/scipost/webapps/scipost_static/bundles/
'
# Error reporting
ADMINS
=
MANAGERS
=
((
'
J.S.Caux
'
,
'
J.S.Caux@uva.nl
'
),
(
'
J.de Wit
'
,
'
jorrandewit@outlook.com
'
))
# Cookies -- *** No SSL yet ***
# SESSION_COOKIE_SECURE = True
# CSRF_COOKIE_SECURE = True
# Email -- *** Deactivated ***
# EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
# EMAIL_HOST = get_secret("EMAIL_HOST")
# EMAIL_HOST_USER = get_secret("EMAIL_HOST_USER")
# EMAIL_HOST_PASSWORD = get_secret("EMAIL_HOST_PASSWORD")
DEFAULT_FROM_EMAIL
=
'
admin@scipost.org
'
# SERVER_EMAIL = get_secret("SERVER_EMAIL")
# Other
CROSSREF_LOGIN_ID
=
get_secret
(
"
CROSSREF_LOGIN_ID
"
)
CROSSREF_LOGIN_PASSWORD
=
get_secret
(
"
CROSSREF_LOGIN_PASSWORD
"
)
DOAJ_API_KEY
=
get_secret
(
"
DOAJ_API_KEY
"
)
HAYSTACK_CONNECTIONS
[
'
default
'
][
'
PATH
'
]
=
'
/home/scipost/webapps/scipost/SciPost_v1/whoosh_index
'
MAILCHIMP_API_USER
=
get_secret
(
"
MAILCHIMP_API_USER
"
)
MAILCHIMP_API_KEY
=
get_secret
(
"
MAILCHIMP_API_KEY
"
)
# iThenticate
ITHENTICATE_USERNAME
=
get_secret
(
'
ITHENTICATE_USERNAME
'
)
ITHENTICATE_PASSWORD
=
get_secret
(
'
ITHENTICATE_PASSWORD
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment