- here ./themes/sweetdate/framework/options/fields/typography/ — found links to google with http, as result have error if we use https
- fix: perl -p -i -e ‘s!http:(//fonts.googleapis.com)!$1’ themes/sweetdate/framework/options/fields/typography/*
- same issue with geonames.org, i fix it via nginx (below) and replace links to /geo/, but better if we proxies via php file
nginx:
location = /geo/ {
proxy_set_header Host api.geonames.org;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://api.geonames.org:80/searchJSON;
proxy_read_timeout 10;
}