aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-10-31 01:32:13 +0300
committerGravatar Vitaly Takmazov2017-10-31 01:32:46 +0300
commit20e19b4242f888aafe3c55f9dabe3af46728cbab (patch)
treef6733154952d2ddca5435cfc900369df26114a0f /juick-api/src/main/java/com/juick
parent240a375ecdeb7592d8765f0edb7d2fd67c50ac10 (diff)
gradle: farm configuration
Diffstat (limited to 'juick-api/src/main/java/com/juick')
-rw-r--r--juick-api/src/main/java/com/juick/api/configuration/ApiAppConfiguration.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/juick-api/src/main/java/com/juick/api/configuration/ApiAppConfiguration.java b/juick-api/src/main/java/com/juick/api/configuration/ApiAppConfiguration.java
index c78ea51a..f51528bf 100644
--- a/juick-api/src/main/java/com/juick/api/configuration/ApiAppConfiguration.java
+++ b/juick-api/src/main/java/com/juick/api/configuration/ApiAppConfiguration.java
@@ -22,6 +22,7 @@ import com.juick.api.TelegramBotManager;
import com.juick.server.configuration.BaseWebConfiguration;
import com.juick.service.ImagesService;
import com.juick.service.ImagesServiceImpl;
+import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.*;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
@@ -53,7 +54,8 @@ public class ApiAppConfiguration extends BaseWebConfiguration {
@Inject
TelegramBotManager telegramBotManager;
- private static final String WS_URI = "wss://ws.juick.com/";
+ @Value("${websocket_url:ws://localhost:8080/ws/}")
+ private String WS_URI;
@Bean
public WebSocketConnectionManager connectionManager() {