Skip to content

Commit

Permalink
Feature: Transparentize client Accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
AnYiEE committed Feb 19, 2023
1 parent 3f78dbd commit 6fe3f14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conf/wiki.conf
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ proxy_redirect https://$subdomain.planet.wikimedia.org/ https://$subdomain.plan
proxy_redirect ~^https?:\/\/([0-9a-z-][^.]+)\.planet\.wikimedia\.org(\/?(?:\S*?))$ https://$1.planet.example.org$2;
proxy_redirect ~^https?:\/\/([0-9a-z-][^.]*(?:\.m)?)\.(wiki(?:books|data|news|pedia|quote|source|versity|voyage)|wiktionary|mediawiki)\.org(\/?(?:\S*?))$ https://$1.$2.example.org$3;

proxy_set_header Accept $http_accept;
proxy_set_header Accept-Language $http_accept_language;
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down

0 comments on commit 6fe3f14

Please sign in to comment.