aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 6b779baea..52f1894cd 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -45,6 +45,13 @@ public final class Keys {
Collections.singletonList(KeyType.GLOBAL));
/**
+ * Device password. Commonly used in some protocol for sending commands.
+ */
+ public static final ConfigSuffix<String> PROTOCOL_DEVICE_PASSWORD = new ConfigSuffix<>(
+ ".devicePassword",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
* Default protocol mask to use. Currently used only by Skypatrol protocol.
*/
public static final ConfigSuffix<Integer> PROTOCOL_MASK = new ConfigSuffix<>(
@@ -493,6 +500,13 @@ public final class Keys {
Collections.singletonList(KeyType.GLOBAL));
/**
+ * Path to the web app folder.
+ */
+ public static final ConfigKey<String> WEB_PATH = new ConfigKey<>(
+ "web.path",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
* WebSocket connection timeout in milliseconds. Default timeout is 10 minutes.
*/
public static final ConfigKey<Long> WEB_TIMEOUT = new ConfigKey<>(
@@ -671,6 +685,48 @@ public final class Keys {
Collections.singletonList(KeyType.GLOBAL));
/**
+ * Traccar notification API key.
+ */
+ public static final ConfigKey<String> NOTIFICATOR_TRACCAR_KEY = new ConfigKey<>(
+ "notificator.traccar.key",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
+ * Firebase server API key for push notifications.
+ */
+ public static final ConfigKey<String> NOTIFICATOR_FIREBASE_KEY = new ConfigKey<>(
+ "notificator.firebase.key",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
+ * Pushover notification user name.
+ */
+ public static final ConfigKey<String> NOTIFICATOR_PUSHOVER_USER = new ConfigKey<>(
+ "notificator.pushover.user",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
+ * Pushover notification user token.
+ */
+ public static final ConfigKey<String> NOTIFICATOR_PUSHOVER_TOKEN = new ConfigKey<>(
+ "notificator.pushover.token",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
+ * Telegram notification API key.
+ */
+ public static final ConfigKey<String> NOTIFICATOR_TELEGRAM_KEY = new ConfigKey<>(
+ "notificator.telegram.key",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
+ * Telegram notification chat id to post messages to.
+ */
+ public static final ConfigKey<String> NOTIFICATOR_TELEGRAM_CHAT_ID = new ConfigKey<>(
+ "notificator.telegram.chatId",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
* Maximum time period for reports in seconds. Can be useful to prevent users to request unreasonably long reports.
* By default there is no limit.
*/