psy e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra | 6 năm trước cách đây | |
---|---|---|
.. | ||
graphics | 6 năm trước cách đây | |
CHANGES.txt | 6 năm trước cách đây | |
README.md | 6 năm trước cách đây | |
composer.json | 6 năm trước cách đây | |
image.php | 6 năm trước cách đây | |
manifest.xml | 6 năm trước cách đây | |
start.php | 6 năm trước cách đây |
Proxy scheme for http images embedded in https elgg sites
Non-https image urls not originating from the elgg host name are replaced with a proxy url to mod/image_proxy/image.php This file forwards the headers and image content from the http source through to the browser using the elgg site ssl thereby removing unsecure content warnings from browsers.
Non-https images originating from the elgg host over http are rewritten to serve from https
The proxy has an encryption element to ensure that urls passed through are originating as elgg content. This uses the elgg site secret by default. The elgg engine is not booted during the proxy forwarding process to keep things as lean as possible. A single database query is used to retrieve the site secret.
This can optionally be bypassed by adding a new secret string directly to the settings.php file
$CONFIG->image_proxy_secret = 'my secret string';
Adding a custom image_proxy_secret to the config will eliminate all database interaction for the proxy