aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config/Keys.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-07-01 13:32:03 -0700
committerAnton Tananaev <anton@traccar.org>2023-07-01 13:32:03 -0700
commit7c5df536074e850f8f9e35775ca94fd04c3cdd3a (patch)
tree1c1f65f336d1ad55afddf164f34770e4a5cb01ee /src/main/java/org/traccar/config/Keys.java
parent37564d458bb9d4bca9f1634bbe07e1102e0221cd (diff)
downloadtrackermap-server-7c5df536074e850f8f9e35775ca94fd04c3cdd3a.tar.gz
trackermap-server-7c5df536074e850f8f9e35775ca94fd04c3cdd3a.tar.bz2
trackermap-server-7c5df536074e850f8f9e35775ca94fd04c3cdd3a.zip
Configurable API timeout
Diffstat (limited to 'src/main/java/org/traccar/config/Keys.java')
-rw-r--r--src/main/java/org/traccar/config/Keys.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 04bf10fe7..e171511e6 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -739,6 +739,14 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
+ * Maximum API request duration in seconds.
+ */
+ public static final ConfigKey<Integer> WEB_MAX_REQUEST_SECONDS = new IntegerConfigKey(
+ "web.maxRequestSec",
+ List.of(KeyType.CONFIG),
+ 600);
+
+ /**
* Sanitize all strings returned via API. This is needed to fix XSS issues in the old web interface. New React-based
* interface doesn't require this.
*/