Add host and service tags

This commit is contained in:
Ehren Kret
2021-05-10 17:21:54 -05:00
parent 03a531e1b0
commit 670b69df24
3 changed files with 23 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.whispersystems.textsecuregcm.configuration.AccountDatabaseCrawlerConfiguration;
import org.whispersystems.textsecuregcm.configuration.AccountsDatabaseConfiguration;
@@ -51,6 +52,10 @@ import org.whispersystems.websocket.configuration.WebSocketConfiguration;
/** @noinspection MismatchedQueryAndUpdateOfCollection, WeakerAccess */
public class WhisperServerConfiguration extends Configuration {
@NotEmpty
@JsonProperty
private String environment;
@NotNull
@Valid
@JsonProperty
@@ -258,6 +263,10 @@ public class WhisperServerConfiguration extends Configuration {
private Map<String, String> transparentDataIndex = new HashMap<>();
public String getEnvironment() {
return environment;
}
public RecaptchaConfiguration getRecaptchaConfiguration() {
return recaptcha;
}