Merge pull request #18 from arcoast/traefik_example

Add Traefik CORS Example
This commit is contained in:
Ward
2024-04-02 10:02:09 +13:00
committed by GitHub
+23
View File
@@ -88,6 +88,29 @@ server {
}
```
### Traefik example
Add this middleware to your Invidious instance:
```yaml
http:
middlewares:
materialious:
headers:
accessControlAllowCredentials: true
accessControlAllowOriginList: "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.