Skip to content

Commit

Permalink
✨ : add default value for external_url
Browse files Browse the repository at this point in the history
  • Loading branch information
juwit committed Jun 4, 2019
1 parent 57c40d8 commit e38ce9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/io/codeka/gaia/bo/Settings.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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() {
Expand Down

0 comments on commit e38ce9b

Please sign in to comment.