${WWW_CONFIG} && sed -i 's/^s*;s*listen.group = nobody/listen.group = nginx/' ${WWW_CONFIG} && sed -i 's/^s*;s*listen.owner = nobody/listen.owner = nginx/' ${WWW_CONFIG} && sed -i 's/^s*;s*listen.owner = nobody/listen.owner = nginx/' ${WWW_CONFIG} && sed -i 's/^s*listen = 127.0.0.1:9000/listen = /run/php-fpm83.sock/' ${WWW_CONFIG} && sed -i 's/^s*listen = 127.0.0.1:9000/listen = /run/php-fpm83.sock/' ${WWW_CONFIG} && sed -i 's/^s*;s*listen.mode = 0660/listen.mode = 0660/' ${WWW_CONFIG} EXPOSE ${NGINX_PORT} # Configures the container to be in JSON format.</p> <p>The API supports both POST and GET requests.</p>"; die(); } require_once "misc/tools.php"; $url = $_REQUEST["url"]; $requested_root_domain = get_root_domain($url); $allowed_domains = array("i.ytimg.com", "s2.qwant.com", "s1.qwant.com", "upload.wikimedia.org"); if (in_array($requested_root_domain, $allowed_domains)) { $image =