Coder Social home page Coder Social logo

imi-tat0r / gfontproxy.net Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 0.0 30 KB

GFontProxy.NET acts as a proxy server in order to cache and provide Google fonts in compliance with GDPR (if hosted in EU)

License: BSD 3-Clause "New" or "Revised" License

Dockerfile 12.22% C# 87.78%
csharp dotnet6 gdpr gdpr-compliant google-fonts google-fonts-api google-fonts-download google-fonts-proxy

gfontproxy.net's Introduction

Copyright ev0lve    Digital License    AGPL-3.0 Issues Stars Docker    Pulls

GFontProxy.NET

A .NET6 minimal API to act as a proxy in order to cache and provide Google fonts in compliance with GDPR (if hosted in EU)

How it works

GFontProxy.NET can be self-hosted or accessed via our free demo (no up-time guarantee).
Simply replace any https://fonts.googleapis.com/ with https://your-url.tld/.
GFontProxy.NET will then download the corresponding css and fonts from Google and deploy them.
Since no PII is sent to google, this is GDPR compliant without the need for specific consent.

Requirements

In order to use GFontProxy.NET you need to have Docker and a webserver which can act as a reverse proxy (e.g. nginx).

Install

  1. Run the docker container using this command (CORS_ORIGIN is optional):
    docker run -d -p {port}:80 -e WEBSITE_URL=https://your-url.tld -e CORS_ORIGIN=https://another-url.tld imitat0r/gfontproxy.net:latest
  2. Setup a reverse proxy from https://your-url.tld to http://localhost:{port}

Thanks

@MrJustreborn - Initial inspiration for this project
@Fr3shlama - Hosting the Demo

gfontproxy.net's People

Contributors

imi-tat0r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gfontproxy.net's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.