mirror of
https://github.com/Cian-H/invenio-config-iform.git
synced 2025-12-23 05:21:57 +00:00
configs (#1)
* entrypoint for config.py * entrypoint for config.py * manifest * new configs * new configs
This commit is contained in:
@@ -30,7 +30,6 @@ env:
|
||||
python:
|
||||
- "3.6"
|
||||
- "3.7"
|
||||
- "3.8"
|
||||
|
||||
before_install:
|
||||
- "nvm install 6; nvm use 6"
|
||||
@@ -58,6 +57,6 @@ deploy:
|
||||
distributions: "compile_catalog sdist bdist_wheel"
|
||||
on:
|
||||
tags: true
|
||||
python: "3.8"
|
||||
repo: https://github.com/https://github.com/mb-
|
||||
python: "3.6"
|
||||
repo: https://github.com/mb-wali/invenio-config-tugraz
|
||||
condition: $DEPLOY = true
|
||||
|
||||
17
MANIFEST.in
17
MANIFEST.in
@@ -19,3 +19,20 @@ include .editorconfig
|
||||
include .tx/config
|
||||
prune docs/_build
|
||||
recursive-include invenio_config_tugraz/translations *.po *.pot *.mo
|
||||
|
||||
# added by check_manifest.py
|
||||
include *.md
|
||||
include *.rst
|
||||
include *.sh
|
||||
include *.txt
|
||||
include *.rst
|
||||
include LICENSE
|
||||
include babel.ini
|
||||
include pytest.ini
|
||||
recursive-include docs *.bat
|
||||
recursive-include docs *.py
|
||||
recursive-include docs *.rst
|
||||
recursive-include docs *.txt
|
||||
recursive-include docs Makefile
|
||||
recursive-include invenio_config_tugraz *.html
|
||||
recursive-include tests *.py
|
||||
|
||||
@@ -16,3 +16,49 @@ INVENIO_CONFIG_TUGRAZ_DEFAULT_VALUE = 'foobar'
|
||||
|
||||
INVENIO_CONFIG_TUGRAZ_BASE_TEMPLATE = 'invenio_config_tugraz/base.html'
|
||||
"""Default base template for the demo page."""
|
||||
|
||||
# Allowed Hosts
|
||||
APP_ALLOWED_HOSTS = ['0.0.0.0',
|
||||
'localhost',
|
||||
'127.0.0.1',
|
||||
'invenio-dev01.tugraz.at',
|
||||
'invenio-test.tugraz.at'
|
||||
]
|
||||
|
||||
# Allow the statics to build
|
||||
APP_DEFAULT_SECURE_HEADERS = {
|
||||
'content_security_policy': {
|
||||
'default-src': [
|
||||
"'self'",
|
||||
'fonts.googleapis.com',
|
||||
'*.gstatic.com',
|
||||
'data:',
|
||||
"'unsafe-inline'",
|
||||
"'unsafe-eval'",
|
||||
"blob:",
|
||||
],
|
||||
},
|
||||
'content_security_policy_report_only': False,
|
||||
'content_security_policy_report_uri': None,
|
||||
'force_file_save': False,
|
||||
'force_https': True,
|
||||
'force_https_permanent': False,
|
||||
'frame_options': 'sameorigin',
|
||||
'frame_options_allow_from': None,
|
||||
'session_cookie_http_only': True,
|
||||
'session_cookie_secure': True,
|
||||
'strict_transport_security': True,
|
||||
'strict_transport_security_include_subdomains': True,
|
||||
'strict_transport_security_max_age': 31556926, # One year in seconds
|
||||
'strict_transport_security_preload': False,
|
||||
}
|
||||
|
||||
# Mail server
|
||||
MAIL_SERVER = '129.27.11.182'
|
||||
SECURITY_EMAIL_SENDER = 'info@invenio-rdm.tugraz.at'
|
||||
SECURITY_EMAIL_SUBJECT_REGISTER = 'Welcome to RDM!'
|
||||
MAIL_SUPPRESS_SEND = False
|
||||
|
||||
# Shibboleth config
|
||||
# set True if SAML is configured.
|
||||
SHIBBOLETH_ISACTIVE = 'False'
|
||||
|
||||
3
setup.py
3
setup.py
@@ -78,6 +78,9 @@ setup(
|
||||
'invenio_i18n.translations': [
|
||||
'messages = invenio_config_tugraz',
|
||||
],
|
||||
'invenio_config.module': [
|
||||
'invenio_config_tugraz = invenio_config_tugraz.config',
|
||||
],
|
||||
# TODO: Edit these entry points to fit your needs.
|
||||
# 'invenio_access.actions': [],
|
||||
# 'invenio_admin.actions': [],
|
||||
|
||||
Reference in New Issue
Block a user