Another attempt to fix plugin

This commit is contained in:
2025-05-02 13:09:30 +01:00
parent b9f0615657
commit 7143b6a218
2 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
FROM ghcr.io/front-matter/invenio-rdm-starter:v12.0.13.4 FROM ghcr.io/front-matter/invenio-rdm-starter:v12.0.13.4
RUN /opt/invenio/.venv/bin/python -m ensurepip RUN /opt/invenio/.venv/bin/python -m ensurepip
RUN /opt/invenio/.venv/bin/python -m pip install -e /opt/invenio/var/instance/static/plugin RUN /opt/invenio/.venv/bin/python -m pip install /opt/invenio/var/instance/static/plugin
RUN /opt/invenio/.venv/bin/python -m pip uninstall -e pip RUN /opt/invenio/.venv/bin/python -m pip uninstall pip

View File

@@ -70,6 +70,9 @@ def _(x): # needed to avoid start time failure with lazy strings
return x return x
EXTENSIONS = ["custom_invenio_plugin"]
RATELIMIT_ENABLED = True RATELIMIT_ENABLED = True
RATELIMIT_AUTHENTICATED_USER = "50000 per hour;900 per minute" RATELIMIT_AUTHENTICATED_USER = "50000 per hour;900 per minute"
RATELIMIT_GUEST_USER = "30000 per hour;500 per minute" RATELIMIT_GUEST_USER = "30000 per hour;500 per minute"