-
Notifications
You must be signed in to change notification settings - Fork 1
/
invenio.cfg
122 lines (92 loc) · 3.08 KB
/
invenio.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# -*- coding: utf-8 -*-
#
# Copyright (C) 2021 Storm Project.
#
# storm-ws is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
#
# Flask
#
# - See https://flask.palletsprojects.com/en/1.1.x/config/
# Flask Security Key
SECRET_KEY = "CHANGE_ME"
#
# Invenio-App
#
# - See https://invenio-app.readthedocs.io/en/latest/configuration.html
APP_ALLOWED_HOSTS = ['0.0.0.0', 'localhost', '127.0.0.1']
APP_DEFAULT_SECURE_HEADERS = {
'content_security_policy': {
'default-src': [
"'self'",
'data:', # for fonts
"'unsafe-inline'", # for inline scripts and styles
"blob:", # for pdf preview
# Add your own policies here (e.g. analytics)
],
},
'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,
}
#
# Invenio-Records-Resources
#
# - See https://github.com/inveniosoftware/invenio-records-resources/blob/master/invenio_records_resources/config.py
SITE_HOSTNAME = "127.0.0.1"
SITE_HOSTPORT = "443"
SITE_UI_URL = f"https://{SITE_HOSTNAME}:{SITE_HOSTPORT}"
SITE_API_URL = f"https://{SITE_HOSTNAME}:{SITE_HOSTPORT}/api"
#
# Invenio-JSONSchemas
#
# - See https://invenio-jsonschemas.readthedocs.io/en/latest/configuration.html
JSONSCHEMAS_HOST = "local"
#
# Invenio-Records
#
# - See https://invenio-records.readthedocs.io/en/latest/api.html#module-invenio_records.config
RECORDS_REFRESOLVER_CLS = "invenio_records.resolver.InvenioRefResolver"
RECORDS_REFRESOLVER_STORE = "invenio_jsonschemas.proxies.current_refresolver_store"
#
# Invenio-App (+ Flask Limiter)
#
# - See https://invenio-app.readthedocs.io/en/latest/configuration.html#invenio_app.config.RATELIMIT_APPLICATION
# - See https://flask-limiter.readthedocs.io/en/stable/#
# RATELIMIT_GUEST_USER = ...
# RATELIMIT_AUTHENTICATED_USER ...
#
# Invenio-Logging
#
# - See https://invenio-logging.readthedocs.io/en/latest/configuration.html
SENTRY_NAME = "storm-ws"
SENTRY_RELEASE = "v0.1.0"
SENTRY_SITE_NAME = "storm-ws"
SENTRY_DSN = ""
SENTRY_ENVIRONMENT = ""
#
# Brazil Data Cube OAuth 2.0 service
#
# - See https://github.com/brazil-data-cube/bdc-auth-client
BDC_AUTH_CLIENT_ID = ""
BDC_AUTH_CLIENT_SECRET = ""
BDC_AUTH_ACCESS_TOKEN_URL = ""
#
# Deposit component definitions
#
# InvenioRDM instance (to deposit pipelines)
STORM_DEPOSIT_INVENIORDM_SERVER_URL="invenio-rdm-server-url-here"
# GEO Knowledge Hub instance (to deposit pipelines)
STORM_DEPOSIT_GEOKNOWLEDGEHUB_SERVER_URL="gkhub-server-url-here"
# GEO Knowledge Hub instance DOI prefix
STORM_DEPOSIT_GKHUB_CONTRIB_DATACITE_ID="gkhub-doi-prefix"