diff --git a/README.md b/README.md index 8e3e52db..ca5d5afb 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,30 @@ server { } ``` +### Traefik example +Add this middleware to your Invidious instance: +```yaml +http: + middlewares: + materialious: + headers: + accessControlAllowCredentials: true + accessControlAllowOrigin: "https://materialious.example.com" + accessControlAllowMethods: + - GET + - POST + - OPTIONS + - HEAD + - PATCH + - PUT + - DELETE + accessControlAllowHeaders: + - User-Agent + - Authorization + - Content-Type +``` + + ### Other Please open a PR request or issue if you implement this in a different reverse proxy.