From 739fbdbcecfe82bd2c032225d114447c5f868c2a Mon Sep 17 00:00:00 2001 From: Camelia Dumitru Date: Mon, 28 Oct 2024 14:36:53 +0000 Subject: [PATCH] changed props names --- .../java/org/orcid/api/filters/ApiRateLimitFilter.java | 6 +++--- properties/development.properties | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/orcid-pub-web/src/main/java/org/orcid/api/filters/ApiRateLimitFilter.java b/orcid-pub-web/src/main/java/org/orcid/api/filters/ApiRateLimitFilter.java index 9e8373dfdc..c75e08d526 100644 --- a/orcid-pub-web/src/main/java/org/orcid/api/filters/ApiRateLimitFilter.java +++ b/orcid-pub-web/src/main/java/org/orcid/api/filters/ApiRateLimitFilter.java @@ -73,13 +73,13 @@ public class ApiRateLimitFilter extends OncePerRequestFilter { @Resource private PanoplyRedshiftClient panoplyClient; - @Value("${rate.limit.anonymous.requests:10000}") + @Value("${org.orcid.papi.rate.limit.anonymous.requests:10000}") private int anonymousRequestLimit; - @Value("${rate.limit.known.requests:40000}") + @Value("${org.orcid.papi.rate.limit.known.requests:40000}") private int knownRequestLimit; - @Value("${rate.limit.enabled:false}") + @Value("${org.orcid.papi.rate.limit.enabled:false}") private boolean enableRateLimiting; @Value("${org.orcid.persistence.panoply.papiExceededRate.production:false}") diff --git a/properties/development.properties b/properties/development.properties index a71f94da4f..acba226a8f 100644 --- a/properties/development.properties +++ b/properties/development.properties @@ -262,19 +262,21 @@ org.orcid.core.autospam.webhookUrl= org.orcid.persistence.solr.read.only.url=http://localhost:8983/solr org.orcid.persistence.panoply.cleanup.production=false +org.orcid.persistence.panoply.papiExceededRate.production=false # Panoply redshift database org.orcid.core.utils.panoply.driver=com.amazon.redshift.jdbc.Driver org.orcid.core.utils.panoply.maxPoolSize=20 org.orcid.core.utils.panoply.password=xxx org.orcid.core.utils.panoply.idleConnectionTimeout=3600 org.orcid.core.utils.panoply.connectionTimeout=36000 +#jdbc:redshift://:/ org.orcid.core.utils.panoply.jdbcUrl=xxx org.orcid.core.utils.panoply.username=xxx #Slack channel for papi limits org.orcid.core.papiLimitReport.slackChannel=system-alerts-qa org.orcid.core.papiLimitReport.webhookUrl=xxx -rate.limit.anonymous.requests=1 -rate.limit.known.requests=2 -rate.limit.enabled=true +org.orcid.papi.rate.limit.anonymous.requests=1 +org.orcid.papi.rate.limit.known.requests=2 +org.orcid.papi.rate.limit.enabled=true org.orcid.scheduler.papiLimitReport.process=0 18 15 * * * \ No newline at end of file