*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 66729778 authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Update configuration

* set our new DOI prefix
* set values for Flask rate limiting
* increase file size limits for previews
* set values for current deployment (e.g. list of allowed host names)
parent 4a0ef63b
Branches
Tags
No related merge requests found
......@@ -18,10 +18,10 @@ except:
# provided, the allowed hosts variable is set to localhost. In production it
# should be set to the correct host and it is strongly recommended to only
# route correct hosts to the application.
APP_ALLOWED_HOSTS = ['0.0.0.0', 'localhost', '127.0.0.1', '128.130.202.2', 's1.dl.hpc.tuwien.ac.at']
APP_ALLOWED_HOSTS = ['0.0.0.0', 'localhost', '127.0.0.1', '128.130.202.2', 's1.dl.hpc.tuwien.ac.at', 'researchdata.dl.hpc.tuwien.ac.at']
FLASK_RUN_HOST = "0.0.0.0"
FLASK_RUN_PORT = "4430"
FLASK_RUN_PORT = "443"
# Flask-SQLAlchemy
......@@ -74,7 +74,7 @@ SECURITY_EMAIL_SENDER = "no-reply@tuwien.ac.at"
"""Email address used as sender of account registration emails."""
"""Domain name should match the domain used in web server."""
SECURITY_EMAIL_SUBJECT_REGISTER = _("Welcome to RDM!")
SECURITY_EMAIL_SUBJECT_REGISTER = _("Welcome to TU Data!")
"""Email subject for account registration emails."""
MAIL_SUPPRESS_SEND = True
......@@ -148,7 +148,7 @@ to render your overriden login.html
# Accounts
# ========
# Actual values can be find in to invenio.cfg file
# Actual values can be found in to invenio.cfg file
#: Recaptcha public key (change to enable).
RECAPTCHA_PUBLIC_KEY = None
#: Recaptcha private key (change to enable).
......@@ -186,10 +186,23 @@ USERPROFILES_EXTEND_SECURITY_FORMS = True
# Note: the password has to be provided somewhere else (invenio.cfg, environment variable, ...)
PIDSTORE_DATACITE_USERNAME = "DEV.TUWIEN"
PIDSTORE_DATACITE_PASSWORD = None
PIDSTORE_DATACITE_DOI_PREFIX = "10.70124"
PIDSTORE_DATACITE_DOI_PREFIX = "10.48436"
PIDSTORE_DATACITE_TETSTMODE = True
PIDSTORE_DATACITE_URL = "https://mds.test.datacite.org"
# Invenio-Previewer
# ================
# See https://invenio-previewer.readthedocs.io/en/latest/
PREVIEWER_MAX_IMAGE_SIZE_BYTES = 10 * 1024 * 1024 # 10 MB
PREVIEWER_MAX_FILE_SIZE_BYTES = 10 * 1024 * 1024 # 10 MB
# Flask
# ================
# TODO: rate limiting only disabled for select hosts?
RATELIMIT_ENABLED = False
MAX_CONTENT_LENGTH = 25 * 1024 * 1024 # 25 MB
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment