Просмотр исходного кода

Changed postbackUrl to postbackBaseUrl in config.

Winston Li 11 лет назад
Родитель
Сommit
553a1064a5

+ 1 - 1
services/git-bridge/README.md

@@ -32,7 +32,7 @@ The configuration file is in `.json` format. There is an example at `bin/config.
         "apiBaseUrl" (string): base url for the snapshot api,
         "username" (string, optional): username for http basic auth,
         "password" (string, optional): password for http basic auth,
-        "postbackUrl" (string): the postback url,
+        "postbackBaseUrl" (string): the postback url,
         "serviceName" (string): current name of writeLaTeX in case it ever changes
     }
 

+ 1 - 1
services/git-bridge/bin/config.json

@@ -4,6 +4,6 @@
 	"apiBaseUrl": "https://radiant-wind-3058.herokuapp.com/api/v0",
 	"username": "staging",
 	"password": "6kUfbv0R",
-	"postbackUrl": "http://git.overleaf.com",
+	"postbackBaseUrl": "http://git.overleaf.com",
 	"serviceName": "Overleaf"
 }

+ 1 - 1
services/git-bridge/src/uk/ac/ic/wlgitbridge/application/Config.java

@@ -44,7 +44,7 @@ public class Config implements JSONSource {
         }
         this.apiBaseURL = apiBaseURL;
         serviceName = getElement(configObject, "serviceName").getAsString();
-        postbackURL = getElement(configObject, "postbackUrl").getAsString();
+        postbackURL = getElement(configObject, "postbackBaseUrl").getAsString();
         if (!postbackURL.endsWith("/")) {
             postbackURL += "/";
         }

+ 1 - 1
services/git-bridge/src/uk/ac/ic/wlgitbridge/application/WLGitBridgeServer.java

@@ -68,7 +68,7 @@ public class WLGitBridgeServer {
             System.out.println(Util.getServiceName() + "-Git Bridge server started");
             System.out.println("Listening on port: " + port);
             System.out.println("Bridged to: " + writeLatexHostname);
-            System.out.println("Postback URL: " + Util.getPostbackURL());
+            System.out.println("Postback base URL: " + Util.getPostbackURL());
             System.out.println("Root git directory path: " + rootGitDirectoryPath);
         } catch (BindException e) {
             e.printStackTrace();