CB-1433 Bring hostname/containerid into ServerConfig

This commit is contained in:
serge-rider
2021-12-18 11:35:34 +03:00
parent 49963d721c
commit b492e3d4ef
2 changed files with 7 additions and 0 deletions
@@ -114,6 +114,8 @@ type ServerConfig {
rootURI: String!
hostName: String!
anonymousAccessEnabled: Boolean
authenticationEnabled: Boolean @deprecated
supportsCustomConnections: Boolean
@@ -69,6 +69,11 @@ public class WebServerConfig {
return CommonUtils.notEmpty(application.getRootURI());
}
@Property
public String getHostName() {
return CommonUtils.notEmpty(System.getenv("HOSTNAME"));
}
@Property
public boolean isAnonymousAccessEnabled() {
return application.getAppConfiguration().isAnonymousAccessEnabled();