Optimisations to invenio server config

This commit is contained in:
2025-08-20 14:23:26 +01:00
parent 738d953ce8
commit cb736aae19
2 changed files with 23 additions and 0 deletions

View File

@@ -1,5 +1,12 @@
{ {
admin off admin off
http_port 80
https_port 443
servers {
trusted_proxies static private_ranges
protocols h1 h2 h3
max_header_size 16k
}
} }
am-d-model.eu { am-d-model.eu {
@@ -12,6 +19,15 @@ am-d-model.eu {
} }
invenio.am-d-model.eu { invenio.am-d-model.eu {
rate_limit {
* 20 50
}
header {
Strict-Transport-Security "max-age=31536000;"
X-Frame-Options "SAMEORIGIN"
X-Content-Type-Options "nosniff"
Referrer-Policy "strict-origin-when-cross-origin"
}
request_body { request_body {
max_size 1TB max_size 1TB
} }
@@ -19,7 +35,9 @@ invenio.am-d-model.eu {
try_files {path} {path}/ /index.html try_files {path} {path}/ /index.html
reverse_proxy invenio-rdm:5000 { reverse_proxy invenio-rdm:5000 {
transport http { transport http {
dial_timeout 10s
response_header_timeout 5m response_header_timeout 5m
idle_conn_timeout 10m
} }
} }
file_server file_server

View File

@@ -103,6 +103,11 @@ APP_ALLOWED_HOSTS = ["localhost", "127.0.0.1"]
# Set via env variable # Set via env variable
# SQLALCHEMY_DATABASE_URI= # SQLALCHEMY_DATABASE_URI=
SQLALCHEMY_ENGINE_OPTIONS = {
"pool_size": 5,
"max_overflow": 5,
"pool_recycle": 3600,
}
# Invenio-App # Invenio-App