SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
119
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
c3722dca
Commit
c3722dca
authored
3 weeks ago
by
George Katsikas
Browse files
Options
Downloads
Patches
Plain Diff
chore:
️ remove deprecated settings files
parent
47d15015
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scipost_django/SciPost_v1/settings/production.py
+0
-88
0 additions, 88 deletions
scipost_django/SciPost_v1/settings/production.py
scipost_django/SciPost_v1/settings/staging.py
+0
-44
0 additions, 44 deletions
scipost_django/SciPost_v1/settings/staging.py
with
0 additions
and
132 deletions
scipost_django/SciPost_v1/settings/production.py
deleted
100644 → 0
+
0
−
88
View file @
47d15015
import
sentry_sdk
from
sentry_sdk.integrations.django
import
DjangoIntegration
from
sentry_sdk.integrations.celery
import
CeleryIntegration
from
.base
import
*
# THE MAIN THING HERE
DEBUG
=
False
ALLOWED_HOSTS
=
[
"
scipost.org
"
,
"
www.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/
"
JOURNALS_DIR
=
"
SCIPOST_JOURNALS
"
# 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
SESSION_COOKIE_SECURE
=
True
CSRF_COOKIE_SECURE
=
True
# Email
EMAIL_BACKEND
=
"
mails.backends.filebased.ModelEmailBackend
"
EMAIL_BACKEND_ORIGINAL
=
"
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
"
)
EMAIL_PORT
=
587
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
"
)
CROSSREF_DEBUG
=
False
CROSSREF_DEPOSIT_EMAIL
=
"
edadmin@scipost.org
"
DOAJ_API_KEY
=
get_secret
(
"
DOAJ_API_KEY
"
)
HAYSTACK_CONNECTIONS
[
"
default
"
][
"
PATH
"
]
=
"
/home/scipost/webapps/scipost_py38/SciPost/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
"
)
# Logging
LOGGING
[
"
handlers
"
][
"
scipost_file_arxiv
"
][
"
filename
"
]
=
"
/home/scipost/webapps/scipost_py38/logs/arxiv.log
"
LOGGING
[
"
handlers
"
][
"
scipost_file_doi
"
][
"
filename
"
]
=
"
/home/scipost/webapps/scipost_py38/logs/doi.log
"
LOGGING
[
"
handlers
"
][
"
api_file
"
][
"
filename
"
]
=
"
/home/scipost/webapps/scipost_py38/logs/api.log
"
LOGGING
[
"
handlers
"
][
"
oauth_file
"
][
"
filename
"
]
=
"
/home/scipost/webapps/scipost_py38/logs/oauth.log
"
# API
# REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] = ('rest_framework.renderers.JSONRenderer',)
# Sentry
sentry_sdk
.
init
(
dsn
=
get_secret
(
"
SENTRY_DSN
"
),
integrations
=
[
DjangoIntegration
(),
CeleryIntegration
()],
)
CSP_REPORT_URI
=
get_secret
(
"
CSP_SENTRY
"
)
CSP_REPORT_ONLY
=
False
This diff is collapsed.
Click to expand it.
scipost_django/SciPost_v1/settings/staging.py
deleted
100644 → 0
+
0
−
44
View file @
47d15015
# Used on staging server with IP https://scipoststg.webfactional.com
from
.base
import
*
# THE MAIN THING HERE
DEBUG
=
False
ALLOWED_HOSTS
=
[
"
scipoststg.webfactional.com
"
,
"
www.scipoststg.webfactional.com
"
]
# Static and media
STATIC_ROOT
=
"
/home/scipoststg/webapps/scipost_static/
"
MEDIA_ROOT
=
"
/home/scipoststg/webapps/scipost_media/
"
# Webpack
WEBPACK_LOADER
[
"
DEFAULT
"
][
"
CACHE
"
]
=
True
WEBPACK_LOADER
[
"
DEFAULT
"
][
"
BUNDLE_DIR_NAME
"
]
=
"
/home/scipoststg/webapps/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/scipoststg/webapps/scipost/logs/arxiv.log
"
LOGGING
[
"
handlers
"
][
"
scipost_file_doi
"
][
"
filename
"
]
=
"
/home/scipoststg/webapps/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
)
# Mongo
MONGO_DATABASE
[
"
user
"
]
=
get_secret
(
"
MONGO_DB_USER
"
)
MONGO_DATABASE
[
"
password
"
]
=
get_secret
(
"
MONGO_DB_PASSWORD
"
)
MONGO_DATABASE
[
"
port
"
]
=
get_secret
(
"
MONGO_DB_PORT
"
)
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