mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-08 16:42:10 +01:00
Fix enabling forward headers and log appender with environment variable
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
This commit is contained in:
2
gradle/changelog/forward_header.yaml
Normal file
2
gradle/changelog/forward_header.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
- type: fixed
|
||||
description: Enabling forward headers and log appender with environment variable
|
||||
@@ -25,9 +25,9 @@
|
||||
package sonia.scm.server;
|
||||
|
||||
public class ServerConfigYaml {
|
||||
|
||||
|
||||
private static final String SCM_SERVER_PREFIX = "SCM_";
|
||||
|
||||
|
||||
// ### Server
|
||||
private String addressBinding = "0.0.0.0";
|
||||
private int port = 8080;
|
||||
@@ -161,7 +161,7 @@ public class ServerConfigYaml {
|
||||
|
||||
static boolean getEnvWithDefault(String envKey, boolean configValue) {
|
||||
String value = getEnv(envKey);
|
||||
return value != null ? Boolean.getBoolean(value) : configValue;
|
||||
return value != null ? Boolean.parseBoolean(value) : configValue;
|
||||
}
|
||||
|
||||
private static String getEnv(String envKey) {
|
||||
|
||||
@@ -123,7 +123,7 @@ public class ServerConfigYaml {
|
||||
|
||||
static boolean getEnvWithDefault(String envKey, boolean configValue) {
|
||||
String value = getEnv(envKey);
|
||||
return value != null ? Boolean.getBoolean(value) : configValue;
|
||||
return value != null ? Boolean.parseBoolean(value) : configValue;
|
||||
}
|
||||
|
||||
private static String getEnv(String envKey) {
|
||||
|
||||
Reference in New Issue
Block a user