Open raamdev opened 7 years ago
New proxy URL: http://update-fallback.wpsharks.io/cc-proxy
?product_api[action]=latest_pro_update
&product_api[username]=johndoe22
&product_api[password]=[COMET CACHE API KEY]
&product_api[stable]=1
(stable releases, or any release?)
In short, all the same variables that cometcache.com uses. This is simply a non-SSL proxy.
Returns JSON, just like cometcache.com does.
{
"pro_version": "170220",
"pro_zip": "http://dls.wpsharks.io/cdn-xar?slug=comet-cache-pro&version=170220&expires=1494021828&_sig=6ee774...3f445118ffb0beccf52e65b0826856bca40"
}
Another new proxy URL: http://dls.wpsharks.io/cdn-xar
?slug=comet-cache-pro
&version=[COMET CACHE VERSION]
&expires=[TIMESTAMP EXPIRATION]
&_sig=[REQUIRES SECRET KEY TO SIGN THE REQUEST]
URLs leading to this endpoint are generated by the cometcache.com API and the new update-fallback.wpsharks.io/cc-proxy
endpoint noted in the previous comment above ↑
In other words, all Comet Cache automatic updates now pass through http://dls.wpsharks.io/cdn-xar
(non-SSL), which is what delivers the zip file downloads.
Documented the new API endpoints above ↑
The list above has been completed and this is now pending a PR review. https://github.com/websharks/comet-cache-pro/pull/315
Note: This issue is currently blocked by changes needed to the build system: https://github.com/websharks/phings/issues/159.
Once the above issue has been closed, the Comet Cache Pro update utilities can be updated to check https://cdn.wpsharks.com/software/bleeding-edge/comet-cache-pro/version.txt for the latest Pro version, instead of querying the API on cometcache.com.
Additionally, we might be able to do away with using the proxy server fallback for version checks on servers that have older SSL software that doesn't support HSTS headers:
@jaswrks writes...
TODO
rc/version.txt
version-ars.txt
; see https://github.com/websharks/phings/issues/159rc/version.txt
version-ars.txt
(RC) and/version.txt
(stable) to check for latest Pro versionhttp://
(non-SSL) URL toversion.txt
on sites running outdated SSL software; this will allow us to use the proxy only for license authentication, when necessaryproxy.websharks-inc.net/comet-cache/
should be updated to the newerupdate-fallback.wpsharks.io/comet-cache/
update-fallback.wpsharks.io/cc-proxy