mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-24 01:23:21 +08:00
CB-1433 Bring hostname/containerid into ServerConfig
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user