diff --git a/src/main/java/io/codeka/gaia/bo/Settings.java b/src/main/java/io/codeka/gaia/bo/Settings.java index c1137c0c2..cda8326eb 100644 --- a/src/main/java/io/codeka/gaia/bo/Settings.java +++ b/src/main/java/io/codeka/gaia/bo/Settings.java @@ -1,5 +1,6 @@ package io.codeka.gaia.bo; +import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.PropertySource; import org.springframework.stereotype.Component; @@ -14,6 +15,7 @@ public class Settings { /** * Gaia's external url (used to allow runners to speak to Gaia) */ + @Value("${:http://localhost:${server.port:8080}}") private String externalUrl; public String getExternalUrl() {