diff --git a/SciPost_v1/settings/production.py b/SciPost_v1/settings/production.py index b982ea52a7d3792d4f0988f224e218bea71c5378..ffba29aff8e844946a5124210c21372395a849c5 100644 --- a/SciPost_v1/settings/production.py +++ b/SciPost_v1/settings/production.py @@ -5,7 +5,9 @@ DEBUG = False ALLOWED_HOSTS = ['www.scipost.org', 'scipost.org'] # Static and media +STATIC_URL = 'https://scipost.org/static/' STATIC_ROOT = '/home/scipost/webapps/scipost_static/' +MEDIA_URL = 'https://scipost.org/media/' MEDIA_ROOT = '/home/scipost/webapps/scipost_media/' # Recaptcha diff --git a/SciPost_v1/settings/production_2.py b/SciPost_v1/settings/production_2.py deleted file mode 100644 index eb07431255e7cbf1e86d9c493d05b782b65c9cf3..0000000000000000000000000000000000000000 --- a/SciPost_v1/settings/production_2.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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', 'scipost.webfactional.com'] - -# 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')