Closed acetao closed 9 years ago
A1: I didn't try in Windows. But it seems your configuration is good. A2: Each proxy contains elements of: proxyType, proxyHost, prosyPort[, username, password]. If your proxy doesn't need authentication, do not specify username/password. BTW, if you server can directly access all remote OJs normally, you can just comment all proxis except ["direct"].
if comment those you proposed,it will not work! I ignore it ! and finally it works successfully! but how to add problem to the virtual oj?
First you need to ensure your server can access remote OJs normally (by proxy or not). Then only fill what is right in the "proxies" section. Can't you read that the IP in the example file is for demo only? You can't just leave those lines there. Only leave the line ["direct"](without the trailing ";", which I think is obvious but maybe not for you ???), if you are don't have your own proxies, or you don't even know what "PROXY" is at all.
Thanks! Using VPN to download the schema,http_client.json and remote_accounts.json successfully! But I have some other questions:
Question 1: How to modify the config.properties?below is my modification:
remote OJ(absolute path)
remoteAccountsConfig.location= /Users/isun/Dropbox/vjudge/config/remote_accounts.json
remoteAccountsConfig.location= D:\java\Tomcat 8.0\webapps\vjudge\WEB-INF\classes\remote_accounts.json
HTTP client(absolute path)
httpClientConfig.location= /Users/isun/Dropbox/vjudge/config/http_client.json
httpClientConfig.location= D:\java\Tomcat 8.0\webapps\vjudge\WEB-INF\classes\http_client.json
Are they correct?
Questions 2: How to modify the http_client.json?Below are parts of mime:
"proxies" : [ ["direct"], ["http", "acm.fzu.edu.cn", 25], ["http", "5.6.7.8", 25, "user", "pwd"], ["socks", "2.3.4.5", 26] ]
the number 25 means for what? the "user" is for which? May you give an example?
Thanks a lot!