psy e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 gadi atpakaļ
..
graphics e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 gadi atpakaļ
CHANGES.txt e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 gadi atpakaļ
README.md e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 gadi atpakaļ
composer.json e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 gadi atpakaļ
image.php e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 gadi atpakaļ
manifest.xml e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 gadi atpakaļ
start.php e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 gadi atpakaļ

README.md

image_proxy

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