Changed postbackUrl to postbackBaseUrl in config.

This commit is contained in:
Winston Li 2015-01-06 20:13:05 +00:00
parent fec30532a2
commit 553a1064a5
4 changed files with 4 additions and 4 deletions

View file

@ -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
}

View file

@ -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"
}

View file

@ -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 += "/";
}

View file

@ -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();