* entrypoint for config.py

* entrypoint for config.py

* manifest

* new configs

* new configs
This commit is contained in:
mb-wali
2020-05-12 14:58:54 +02:00
committed by GitHub
parent e1357c890a
commit a62ed72989
4 changed files with 68 additions and 3 deletions

View File

@@ -30,7 +30,6 @@ env:
python: python:
- "3.6" - "3.6"
- "3.7" - "3.7"
- "3.8"
before_install: before_install:
- "nvm install 6; nvm use 6" - "nvm install 6; nvm use 6"
@@ -58,6 +57,6 @@ deploy:
distributions: "compile_catalog sdist bdist_wheel" distributions: "compile_catalog sdist bdist_wheel"
on: on:
tags: true tags: true
python: "3.8" python: "3.6"
repo: https://github.com/https://github.com/mb- repo: https://github.com/mb-wali/invenio-config-tugraz
condition: $DEPLOY = true condition: $DEPLOY = true

View File

@@ -19,3 +19,20 @@ include .editorconfig
include .tx/config include .tx/config
prune docs/_build prune docs/_build
recursive-include invenio_config_tugraz/translations *.po *.pot *.mo 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

View File

@@ -16,3 +16,49 @@ INVENIO_CONFIG_TUGRAZ_DEFAULT_VALUE = 'foobar'
INVENIO_CONFIG_TUGRAZ_BASE_TEMPLATE = 'invenio_config_tugraz/base.html' INVENIO_CONFIG_TUGRAZ_BASE_TEMPLATE = 'invenio_config_tugraz/base.html'
"""Default base template for the demo page.""" """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'

View File

@@ -78,6 +78,9 @@ setup(
'invenio_i18n.translations': [ 'invenio_i18n.translations': [
'messages = invenio_config_tugraz', 'messages = invenio_config_tugraz',
], ],
'invenio_config.module': [
'invenio_config_tugraz = invenio_config_tugraz.config',
],
# TODO: Edit these entry points to fit your needs. # TODO: Edit these entry points to fit your needs.
# 'invenio_access.actions': [], # 'invenio_access.actions': [],
# 'invenio_admin.actions': [], # 'invenio_admin.actions': [],