Skip to content

nginx conf for Wikipedia wikipmedia 维基百科、维基媒体全站反代

License

Notifications You must be signed in to change notification settings

vincentfast/wikipedia-conf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

wikipedia nginx conf

代理维基全站,基于lnmp.org的nginx配置。 nginx要添加ngx_brotlimodel。

使用方法(假设你的域名为 abc.com ):

  1. {$domain2}替换为abc,将{$domain1}替换为com
  2. ssl证书需要申请以下域名(dns同样需要添加解析记录)
*.abc.com
*.wikimedia.abc.com
*.wikipedia.abc.com
*.wikimediafoundation.abc.com
*.wiktionary.abc.com
*.wikivoyage.abc.com
*.wikiversity.abc.com
*.wikisource.abc.com
*.wikiquote.abc.com
*.wikinews.abc.com
*.wikidata.abc.com
*.mediawiki.abc.com
*.wikibooks.abc.com
*.m.wikimedia.abc.com
*.m.wikipedia.abc.com
*.m.wmfusercontent.abc.com
*.m.wikimediafoundation.abc.com
*.m.wiktionary.abc.com
*.m.wikivoyage.abc.com
*.m.wikiversity.abc.com
*.m.wikisource.abc.com
*.m.wikiquote.abc.com
*.m.wikinews.abc.com
*.m.wikidata.abc.com
*.m.mediawiki.abc.com
*.m.wikibooks.abc.com
*.wmfusercontent.abc.com

部分dns(例如aliyun)的解析记录还需添加所有去除*.的记录。

参考:

About

nginx conf for Wikipedia wikipmedia 维基百科、维基媒体全站反代

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published