Used non default syncthing port to avoid confict.
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Thu, 12 Oct 2017 15:34:29 +0000 (17:34 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Thu, 12 Oct 2017 15:37:56 +0000 (17:37 +0200)
conf.d/etc/xds-server/config.json
config.json.in
lib/syncthing/st.go
webapp/src/app/services/config.service.ts
webapp/src/app/services/syncthing.service.ts

index 02d87bf..4dbe501 100644 (file)
@@ -6,6 +6,6 @@
     "syncthing": {
         "binDir": "",
         "home": "${HOME}/.xds-server/syncthing-config",
-        "gui-address": "http://localhost:8384"
+        "gui-address": "http://localhost:8385"
     }
 }
index 6116439..ac2f891 100644 (file)
@@ -7,6 +7,6 @@
     "syncthing": {
         "binDir": "./bin",
         "home": "${HOME}/.xds-server/syncthing-config",
-        "gui-address": "http://localhost:8384"
+        "gui-address": "http://localhost:8385"
     }
 }
index bc65299..99a17a1 100644 (file)
@@ -101,7 +101,7 @@ func NewSyncThing(conf *xdsconfig.Config, log *logrus.Logger) *SyncThing {
        }
 
        if url == "" {
-               url = "http://localhost:8384"
+               url = "http://localhost:8385"
        }
        if url[0:7] != "http://" {
                url = "http://" + url
index 98dec34..3f07a6a 100644 (file)
@@ -125,7 +125,7 @@ export class ConfigService {
                 projects: [],
                 localSThg: {
                     ID: null,
-                    URL: "http://localhost:8384",
+                    URL: "http://localhost:8385",
                     retry: 10,    // 10 seconds
                     tilde: "",
                 }
index aefb039..2e6da1c 100644 (file)
@@ -104,7 +104,7 @@ interface ISTConfiguration {
 }
 
 // Default settings
-const DEFAULT_GUI_PORT = 8384;
+const DEFAULT_GUI_PORT = 8386;
 const DEFAULT_GUI_API_KEY = "1234abcezam";
 const DEFAULT_RESCAN_INTERV = 0;    // 0: use syncthing-inotify to detect changes