SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 42769366 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

New env settings

parent 143457db
No related branches found
No related tags found
No related merge requests found
# Used on staging server with IP 128.199.54.82
from .base import *
# THE MAIN THING HERE
DEBUG = False
ALLOWED_HOSTS = ['128.199.54.82']
# Static and media
STATIC_ROOT = '/home/scipost_static/'
MEDIA_ROOT = '/home/scipost_media/'
# Webpack
WEBPACK_LOADER['DEFAULT']['CACHE'] = True
WEBPACK_LOADER['DEFAULT']['BUNDLE_DIR_NAME'] = '/home/scipost/scipost_static/bundles/'
# ReCaptcha keys
RECAPTCHA_PUBLIC_KEY = get_secret("GOOGLE_RECAPTCHA_PUBLIC_KEY")
RECAPTCHA_PRIVATE_KEY = get_secret("GOOGLE_RECAPTCHA_PRIVATE_KEY")
# Logging location
LOGGING['handlers']['scipost_file_arxiv']['filename'] = '/home/scipost/logs/arxiv.log'
LOGGING['handlers']['scipost_file_doi']['filename'] = '/home/scipost/logs/doi.log'
# Cookies
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
# Email
EMAIL_BACKEND = 'mails.backends.filebased.ModelEmailBackend'
EMAIL_BACKEND_ORIGINAL = 'django.core.mail.backends.dummy.EmailBackend' # Disable real processing
from .base import *
# This file is meant for the server used for the release branches
#
# THE MAIN THING HERE
DEBUG = False
ALLOWED_HOSTS = ['jdewit.webfactional.com']
# Recaptcha
RECAPTCHA_PUBLIC_KEY = get_secret("GOOGLE_RECAPTCHA_PUBLIC_KEY")
RECAPTCHA_PRIVATE_KEY = get_secret("GOOGLE_RECAPTCHA_PRIVATE_KEY")
# Static and media
STATIC_URL = '/static/'
STATIC_ROOT = '/home/jdewit/webapps/scipost_static/'
MEDIA_URL = '/media/'
MEDIA_ROOT = '/home/jdewit/webapps/scipost_media/'
WEBPACK_LOADER['DEFAULT']['CACHE'] = True
WEBPACK_LOADER['DEFAULT']['BUNDLE_DIR_NAME'] = '/home/jdewit/webapps/scipost_static/bundles/'
# Logging
LOGGING['handlers']['scipost_file_arxiv']['filename'] = '/home/jdewit/webapps/scipost/logs/arxiv.log'
LOGGING['handlers']['scipost_file_doi']['filename'] = '/home/jdewit/webapps/scipost/logs/doi.log'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment