This commit is contained in:
Anthony Stirling
2023-04-02 11:51:07 +01:00
parent a80c585086
commit 22be1a1104
25 changed files with 62 additions and 25 deletions

View File

@@ -14,9 +14,30 @@ public class AppConfig {
@Bean(name = "appName")
public String appName() {
String appName = System.getProperty("AppName");
String appName = System.getProperty("APP_HOME_NAME");
if(appName == null)
appName = System.getenv("APP_NAME");
appName = System.getenv("APP_HOME_NAME");
return (appName != null) ? appName : "Stirling PDF";
}
@Bean(name = "navBarText")
public String navBarText() {
String navBarText = System.getProperty("APP_NAVBAR_NAME");
if(navBarText == null)
navBarText = System.getenv("APP_NAVBAR_NAME");
if(navBarText == null)
navBarText = System.getProperty("APP_HOME_NAME");
if(navBarText == null)
navBarText = System.getenv("APP_HOME_NAME");
return (navBarText != null) ? navBarText : "Stirling PDF";
}
@Bean(name = "homeText")
public String homeText() {
String homeText = System.getProperty("APP_HOME_DESCRIPTION");
if(homeText == null)
homeText = System.getenv("APP_HOME_DESCRIPTION");
return (homeText != null) ? homeText : "null";
}
}