{"id":15676976,"url":"https://github.com/trajano/google-fonts-proxy-docker","last_synced_at":"2025-05-05T21:44:10.088Z","repository":{"id":56778449,"uuid":"454993720","full_name":"trajano/google-fonts-proxy-docker","owner":"trajano","description":" Google Fonts Proxy","archived":false,"fork":false,"pushed_at":"2024-08-11T12:02:39.000Z","size":45,"stargazers_count":13,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T00:01:41.184Z","etag":null,"topics":["docker","gdpr","google-fonts"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/trajano/google-fonts","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trajano.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-03T01:29:33.000Z","updated_at":"2024-07-31T02:47:38.000Z","dependencies_parsed_at":"2024-01-10T19:27:34.906Z","dependency_job_id":"5bb7bba6-bca5-4b5d-b8b1-3539ecd24a08","html_url":"https://github.com/trajano/google-fonts-proxy-docker","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trajano%2Fgoogle-fonts-proxy-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trajano%2Fgoogle-fonts-proxy-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trajano%2Fgoogle-fonts-proxy-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trajano%2Fgoogle-fonts-proxy-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trajano","download_url":"https://codeload.github.com/trajano/google-fonts-proxy-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252582245,"owners_count":21771634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","gdpr","google-fonts"],"created_at":"2024-10-03T16:07:52.953Z","updated_at":"2025-05-05T21:44:10.072Z","avatar_url":"https://github.com/trajano.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Fonts Proxy\n\nThis is a drop in replacement for Google Fonts requests so that the source IP of a calling service will not be sent to Google to avoid [fines in the EU](https://www.theregister.com/2022/01/31/website_fine_google_fonts_gdpr/)\n\nIt's an Apache HTTPd server running mod_proxy which forwards to Google and subsitutes the responses so that references to google are replaced with the request of this server.\n\nNote this *does not* support URL prefixing nor SSL.  So you need to route on `/s` and `/css` as needed using Traefik.\n\nIt also uses the proxy cache to reduce the requests to Google.  However, it's a simple disk cache so make sure you have enough room to handle DoS attacks.\n\n## Labels\n\nThis comes in two flavors:\n\n1. `httpd` - supports `X-Forwarded-*` headers for automatic determination\n2. `caddy` - supports only `STATIC_URL`\n\n## Usage\n\n```yaml\nservice:\n  fonts:\n    image: trajano/google-fonts\n```\n\n## Build test locally\n\n```bash\ndocker rm -f fp ; docker build . -t f \u0026\u0026 docker run --rm --name fp -p 4000:80 -d f\ncurl -v 'localhost:4000/css?family=Roboto:300,400,400i,700,700i\u0026display=swap'\n```\n\n## Test with env var\n\n```bash\ndocker rm -f fp ; docker build . -t f \u0026\u0026 docker run --rm --name fp -p 4000:80 --env STATIC_URL=http://localhost:4000/s -d f\ncurl -v 'localhost:4000/css?family=Roboto:300,400,400i,700,700i\u0026display=swap'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrajano%2Fgoogle-fonts-proxy-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrajano%2Fgoogle-fonts-proxy-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrajano%2Fgoogle-fonts-proxy-docker/lists"}