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.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index d53245c65..82afe048b 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -688,6 +688,14 @@ public final class Keys {
Collections.singletonList(KeyType.GLOBAL));
/**
+ * Root folder for all template files.
+ */
+ public static final ConfigKey<String> TEMPLATES_ROOT = new ConfigKey<>(
+ "templates.root",
+ Collections.singletonList(KeyType.GLOBAL),
+ "templates");
+
+ /**
* SMS API service full URL. Enables SMS commands and notifications.
*/
public static final ConfigKey<String> SMS_HTTP_URL = new ConfigKey<>(
@@ -1246,6 +1254,15 @@ public final class Keys {
Collections.singletonList(KeyType.GLOBAL));
/**
+ * Public URL for the web app. Used for notification and report link.
+ *
+ * If not provided, Traccar will attempt to get a URL from the server IP address, but it might be a local address.
+ */
+ public static final ConfigKey<String> WEB_URL = new ConfigKey<>(
+ "web.url",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
* Output logging to the standard terminal output instead of a log file.
*/
public static final ConfigKey<Boolean> LOGGER_CONSOLE = new ConfigKey<>(