├── DNS Name.txt ├── DNS.zone ├── LICENSE ├── README.md ├── conf ├── wiki-location-api.conf ├── wiki-location-main.conf ├── wiki-location-static.conf ├── wiki-location-upload-fix.conf ├── wiki-site-http.conf ├── wiki-site-ssl.conf ├── wiki-sub.conf ├── wiki.conf └── wiki.nginx ├── nginx.conf ├── static ├── images │ └── darkmode │ │ ├── zhwiki-1.5x.png │ │ ├── zhwiki-2x.png │ │ ├── zhwiki-hans-1.5x.png │ │ ├── zhwiki-hans-2x.png │ │ ├── zhwiki-hans.png │ │ └── zhwiki.png ├── robots.txt ├── wikimirror.css ├── wikimirror.css.map ├── wikimirror.js └── wikimirror.js.map └── wikimirror.png /DNS Name.txt: -------------------------------------------------------------------------------- 1 | DNS Name=*.m.wikibooks.example.org 2 | DNS Name=*.m.wikidata.example.org 3 | DNS Name=*.m.example.org 4 | DNS Name=*.m.wikinews.example.org 5 | DNS Name=*.m.wikipedia.example.org 6 | DNS Name=*.m.wikiquote.example.org 7 | DNS Name=*.m.wikisource.example.org 8 | DNS Name=*.m.wikiversity.example.org 9 | DNS Name=*.m.wikivoyage.example.org 10 | DNS Name=*.m.wiktionary.example.org 11 | DNS Name=*.mediawiki.example.org 12 | DNS Name=*.planet.example.org 13 | DNS Name=*.wikimediafoundation.example.org 14 | DNS Name=*.wikibooks.example.org 15 | DNS Name=*.wikidata.example.org 16 | DNS Name=*.wikifunctions.example.org 17 | DNS Name=*.wikinews.example.org 18 | DNS Name=*.wikipedia.example.org 19 | DNS Name=*.wikiquote.example.org 20 | DNS Name=*.wikisource.example.org 21 | DNS Name=*.wikiversity.example.org 22 | DNS Name=*.wikivoyage.example.org 23 | DNS Name=*.wiktionary.example.org 24 | DNS Name=*.example.org 25 | DNS Name=example.org -------------------------------------------------------------------------------- /DNS.zone: -------------------------------------------------------------------------------- 1 | example.org. 600 IN A 127.0.0.1 2 | *.example.org. 3600 IN CNAME text-lb.example.org. 3 | latex-png.example.org. 3600 IN CNAME upload-lb.example.org. 4 | latex-svg.example.org. 3600 IN CNAME upload-lb.example.org. 5 | m.example.org. 3600 IN CNAME text-lb.example.org. 6 | *.m.example.org. 3600 IN CNAME text-lb.example.org. 7 | maps.example.org. 3600 IN CNAME upload-lb.example.org. 8 | mediawiki.example.org. 3600 IN CNAME text-lb.example.org. 9 | *.mediawiki.example.org. 3600 IN CNAME text-lb.example.org. 10 | planet.example.org. 3600 IN CNAME text-lb.example.org. 11 | *.planet.example.org. 3600 IN CNAME text-lb.example.org. 12 | text-lb.example.org. 600 IN A 127.0.0.1 13 | upload.example.org. 3600 IN CNAME upload-lb.example.org. 14 | upload-lb.example.org. 600 IN A 127.0.0.1 15 | wikibooks.example.org. 3600 IN CNAME text-lb.example.org. 16 | *.wikibooks.example.org. 3600 IN CNAME text-lb.example.org. 17 | m.wikibooks.example.org. 3600 IN CNAME text-lb.example.org. 18 | *.m.wikibooks.example.org. 3600 IN CNAME text-lb.example.org. 19 | wikidata.example.org. 3600 IN CNAME text-lb.example.org. 20 | *.wikidata.example.org. 3600 IN CNAME text-lb.example.org. 21 | m.wikidata.example.org. 3600 IN CNAME text-lb.example.org. 22 | *.m.wikidata.example.org. 3600 IN CNAME text-lb.example.org. 23 | wikifunctions.example.org. 3600 IN CNAME text-lb.example.org. 24 | *.wikifunctions.example.org. 3600 IN CNAME text-lb.example.org. 25 | wikimediafoundation.example.org. 3600 IN CNAME text-lb.example.org. 26 | *.wikimediafoundation.example.org. 3600 IN CNAME text-lb.example.org. 27 | wikinews.example.org. 3600 IN CNAME text-lb.example.org. 28 | *.wikinews.example.org. 3600 IN CNAME text-lb.example.org. 29 | m.wikinews.example.org. 3600 IN CNAME text-lb.example.org. 30 | *.m.wikinews.example.org. 3600 IN CNAME text-lb.example.org. 31 | wikipedia.example.org. 3600 IN CNAME text-lb.example.org. 32 | *.wikipedia.example.org. 3600 IN CNAME text-lb.example.org. 33 | m.wikipedia.example.org. 3600 IN CNAME text-lb.example.org. 34 | *.m.wikipedia.example.org. 3600 IN CNAME text-lb.example.org. 35 | wikiquote.example.org. 3600 IN CNAME text-lb.example.org. 36 | *.wikiquote.example.org. 3600 IN CNAME text-lb.example.org. 37 | m.wikiquote.example.org. 3600 IN CNAME text-lb.example.org. 38 | *.m.wikiquote.example.org. 3600 IN CNAME text-lb.example.org. 39 | wikisource.example.org. 3600 IN CNAME text-lb.example.org. 40 | *.wikisource.example.org. 3600 IN CNAME text-lb.example.org. 41 | m.wikisource.example.org. 3600 IN CNAME text-lb.example.org. 42 | *.m.wikisource.example.org. 3600 IN CNAME text-lb.example.org. 43 | wikiversity.example.org. 3600 IN CNAME text-lb.example.org. 44 | *.wikiversity.example.org. 3600 IN CNAME text-lb.example.org. 45 | m.wikiversity.example.org. 3600 IN CNAME text-lb.example.org. 46 | *.m.wikiversity.example.org. 3600 IN CNAME text-lb.example.org. 47 | wikivoyage.example.org. 3600 IN CNAME text-lb.example.org. 48 | *.wikivoyage.example.org. 3600 IN CNAME text-lb.example.org. 49 | m.wikivoyage.example.org. 3600 IN CNAME text-lb.example.org. 50 | *.m.wikivoyage.example.org. 3600 IN CNAME text-lb.example.org. 51 | wiktionary.example.org. 3600 IN CNAME text-lb.example.org. 52 | *.wiktionary.example.org. 3600 IN CNAME text-lb.example.org. 53 | m.wiktionary.example.org. 3600 IN CNAME text-lb.example.org. 54 | *.m.wiktionary.example.org. 3600 IN CNAME text-lb.example.org. 55 | wma.example.org. 3600 IN CNAME upload-lb.example.org. -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
nginx-wikimirror
2 |

A Wikimedia Projects Reverse Proxy based on Nginx

3 | 4 | **使用方法 | Instructions for Use** 5 | 6 | 1. 将文件夹`nginx-wikimirror`([Release](https://github.com/AnYiEE/nginx-wikimirror/releases))下载至本地,并保持目录结构,不要直接克隆仓库
Download the [release](https://github.com/AnYiEE/nginx-wikimirror/releases) of `nginx-wikimirror`, maintaining the directory structure, and DO NOT clone the repository directly 7 | 2. 将文件夹`nginx-wikimirror`重命名为`wikimirror`,并记录此时的绝对路径
Rename the folder `nginx-wikimirror` to `wikimirror` and record the absolute path 8 | 3. 重编译Nginx以添加[ngx_http_substitutions_filter_module](https://github.com/AnYiEE/ngx_http_substitutions_filter_module/releases)和[headers-more-nginx-module](https://github.com/openresty/headers-more-nginx-module/tags)
Rebuild Nginx to add [ngx_http_substitutions_filter_module](https://github.com/AnYiEE/ngx_http_substitutions_filter_module/releases) and [headers-more-nginx-module](https://github.com/openresty/headers-more-nginx-module/tags) 9 | 10 | **需要你自行修改的位置 | Locations that need to be modified manually** 11 | 12 | > 在你配置完SSL证书、DNS解析和Nginx后,一级目录中,除`conf`和`static`之外的文件即无用,可自行处置
After configuring the SSL certificate, DNS resolution, and Nginx, any files in the top-level directory except for `conf` and `static` are no longer needed and can be disposed of at your discretion 13 | 14 | * DNS Name.txt 15 | 16 | 假设你的域名为`example.org`——你SSL证书的DNS可选名称需要包含这些域名
Assuming your domain is `example.org`, your SSL certificate's DNS alternative name should include these domains 17 | 18 | * DNS.zone 19 | 20 | 假设你的域名为`example.org`,你的IP为`127.0.0.1`——你域名的DNS解析需要包含这些记录
Assuming your domain is `example.org` and your IP is `127.0.0.1`, your DNS resolution needs to include these records 21 | 22 | * nginx.conf 23 | 24 | 修改L-27`/path/to/wikimirror`为你的绝对路径,补全`...`——这仅是一份包含必要配置项的Nginx配置文件
Modify L-27 `/path/to/wikimirror` to your absolute path and complete `...`, this is just an Nginx configuration file containing necessary configuration options 25 | 26 | > 下文的“替换”,如无特殊强调,均为全局搜索并替换
The "replace" used in the following text refers to a global search and replace, unless otherwise specified 27 | 28 | * conf/wiki.conf 29 | 30 | 用你的域名替换`example.org`
Replace `example.org` with your domain 31 | 32 | * conf/wiki.nginx 33 | 34 | 用你的绝对路径替换`/path/to/wikimirror`
Replace `/path/to/wikimirror` with your absolute path 35 | 36 | 用你的域名替换`example.org`
Replace `example.org` with your domain 37 | 38 | 假设你的域名为`test.com`,则用你的域名替换`example\.org`为`test\.com`;假设你的域名为`test.com.cn`,则用你的域名替换`example\.org`为`test\.com\.cn`
Assuming your domain is `test.com`, replace `example\.org` with `test\.com`. Assuming your domain is `test.com.cn`, replace `example\.org` with `test\.com\.cn` 39 | 40 | 用你存放SSL证书的路径替换L-33、L-34、L-35、L-75、L-76、L-77的`/path/to`
Replace `/path/to` with the path where your SSL certificate files are stored in the following lines: L-33, L-34, L-35, L-75, L-76, L-77 41 | 42 | 在L-6\~L-11和L-15\~L-20中分别选择一个距离服务器所在地区最近的或从服务器访问速度最快的节点IP,删掉它所在那行最前面的`#`
In L-6\~L-11 and L-15\~L-20, choose an IP address of a node that is closest to the location of your server or has the fastest access speed from the server, and delete the `#` at the beginning of the corresponding line 43 | 44 | * conf/wiki-location-api.conf、conf/wiki-location-main.conf、conf/wiki-location-static.conf 45 | 46 | 用你的绝对路径替换`/path/to/wikimirror`
Replace `/path/to/wikimirror` with your absolute path 47 | 48 | * conf/wiki-location-upload-fix.conf 49 | 50 | 用你的域名替换`example.org`
Replace `example.org` with your domain 51 | 52 | * conf/wiki-site-ssl.conf 53 | 54 | 用你存放SSL证书的路径替换`/path/to`
Replace `/path/to` with the path where your SSL certificate files are stored 55 | 56 | * conf/wiki-sub.conf 57 | 58 | 用你的域名替换`example.org`,注意以下行:L-22
Replace example.org with your domain. Note the following line: L-22 59 | 60 | 假设你的域名为`test.com`,则用你的域名替换`example\.org`为`test\.com`;假设你的域名为`test.com.cn`,则用你的域名替换`example\.org`为`test\.com\.cn`
Assuming your domain is `test.com`, replace `example\.org` with `test\.com`. Assuming your domain is `test.com.cn`, replace `example\.org` with `test\.com\.cn` 61 | 62 | * static/wikimirror.js 63 | 64 | 用你的域名替换`example.org`
Replace `example.org` with your domain 65 | 66 | **问答 | Q&A** 67 | 68 | * 包括但不限于CDN、DNS、SSL、Nginx其他的配置等“额外的东西”怎么弄?
How to configure "extra things" such as CDN, DNS, SSL, other Nginx configurations, etc.? 69 | 70 | 不要问我,问[Google](https://www.google.com)
Don't ask me, ask [Google](https://www.google.com) 71 | 72 | * 为什么路径、域名等“可变的东西”不用变量?
Why not use variables for the "variable things" like path and domain? 73 | 74 | 因为Nginx在处理每一个请求前都需要对变量重新赋值,这会影响性能
Because Nginx needs to reassign variables for each request it processes, which can affect performance 75 | 76 | * 那怎么一堆`include`?
Why so many `include`? 77 | 78 | 因为Nginx的`include`只会在每次运行前载入一次,不会影响性能
Because Nginx's `include` only loads files once before each run, it does not affect performance 79 | 80 | * 支持的浏览器有哪些?
Supported Browsers 81 | 82 | 参见[MediaWiki浏览器兼容性表格](https://www.mediawiki.org/wiki/Compatibility#Browser_support_matrix)的Grade A行
See MediaWiki browser support matrix - Grade A 83 | 84 | **提示 | Tips** 85 | 86 | * MediaWiki有时会响应其特殊的mime-type类型`text/x-wiki`,如果你使用Brotil或Gzip压缩,可以酌情调整`brotli_types`或`gzip_types`配置项
MediaWiki sometimes responds with its special mime-type `text/x-wiki`. If you use Brotil or Gzip compression, you can adjust the `brotli_types` or `gzip_types` configuration options accordingly 87 | * [TypeScript version of wikimirror.js](https://github.com/AnYiEE/nginx-wikimirror/discussions/2) 88 | 89 | [![Star History Chart](https://api.star-history.com/svg?repos=AnYiEE/nginx-wikimirror&type=Date)](https://star-history.com/#AnYiEE/nginx-wikimirror&Date) -------------------------------------------------------------------------------- /conf/wiki-location-api.conf: -------------------------------------------------------------------------------- 1 | location /api/rest_v1 { 2 | more_set_headers "Access-Control-Allow-Headers: $http_access_control_request_headers" "Access-Control-Allow-Methods: GET, HEAD, POST" "Access-Control-Allow-Origin: $http_origin"; 3 | include /path/to/wikimirror/conf/wiki-sub.conf; 4 | include /path/to/wikimirror/conf/wiki.conf; 5 | proxy_pass https://wiki-IPAddress; 6 | proxy_hide_header access-control-allow-headers; 7 | proxy_hide_header access-control-allow-methods; 8 | proxy_hide_header access-control-allow-origin; 9 | proxy_set_header Accept-Encoding ""; 10 | proxy_set_header Host $subdomain.$hostdomain.org; 11 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 12 | } 13 | location /api/rest_v1/page/pdf { 14 | more_set_headers "Access-Control-Allow-Headers: $http_access_control_request_headers" "Access-Control-Allow-Methods: GET, HEAD, POST" "Access-Control-Allow-Origin: $http_origin"; 15 | include /path/to/wikimirror/conf/wiki.conf; 16 | proxy_pass https://wiki-IPAddress; 17 | proxy_hide_header access-control-allow-headers; 18 | proxy_hide_header access-control-allow-methods; 19 | proxy_hide_header access-control-allow-origin; 20 | proxy_set_header Host $subdomain.$hostdomain.org; 21 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 22 | } 23 | location /w/api.php { 24 | more_set_headers "Access-Control-Allow-Headers: $http_access_control_request_headers" "Access-Control-Allow-Methods: GET, HEAD, POST" "Access-Control-Allow-Origin: $http_origin"; 25 | include /path/to/wikimirror/conf/wiki-sub.conf; 26 | include /path/to/wikimirror/conf/wiki.conf; 27 | proxy_pass https://wiki-IPAddress/w/api.php; 28 | proxy_hide_header access-control-allow-headers; 29 | proxy_hide_header access-control-allow-methods; 30 | proxy_hide_header access-control-allow-origin; 31 | proxy_set_header Accept-Encoding ""; 32 | proxy_set_header Host $subdomain.$hostdomain.org; 33 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 34 | } 35 | location /w/index.php { 36 | more_set_headers "Access-Control-Allow-Headers: $http_access_control_request_headers" "Access-Control-Allow-Methods: GET, HEAD, POST" "Access-Control-Allow-Origin: $http_origin"; 37 | include /path/to/wikimirror/conf/wiki-sub.conf; 38 | include /path/to/wikimirror/conf/wiki.conf; 39 | proxy_pass https://wiki-IPAddress/w/index.php; 40 | proxy_hide_header access-control-allow-headers; 41 | proxy_hide_header access-control-allow-methods; 42 | proxy_hide_header access-control-allow-origin; 43 | proxy_set_header Accept-Encoding ""; 44 | proxy_set_header Host $subdomain.$hostdomain.org; 45 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 46 | } -------------------------------------------------------------------------------- /conf/wiki-location-main.conf: -------------------------------------------------------------------------------- 1 | location / { 2 | if ($http_origin != "") { 3 | more_set_headers "Access-Control-Allow-Headers: $http_access_control_request_headers" "Access-Control-Allow-Methods: GET, HEAD, POST"; 4 | } 5 | include /path/to/wikimirror/conf/wiki-sub.conf; 6 | include /path/to/wikimirror/conf/wiki.conf; 7 | proxy_pass https://wiki-IPAddress; 8 | proxy_hide_header access-control-allow-headers; 9 | proxy_hide_header access-control-allow-methods; 10 | proxy_set_header Accept-Encoding ""; 11 | proxy_set_header Host $subdomain.$hostdomain.org; 12 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 13 | } 14 | location /beacon { 15 | return 204; 16 | } -------------------------------------------------------------------------------- /conf/wiki-location-static.conf: -------------------------------------------------------------------------------- 1 | root /path/to/wikimirror/static; 2 | location = /robots.txt { 3 | index robots.txt; 4 | } 5 | location = /wikimirror.css { 6 | index wikimirror.css; 7 | } 8 | location = /wikimirror.css.map { 9 | more_set_headers "Cache-Control: no-cache"; 10 | index wikimirror.css.map; 11 | } 12 | location = /wikimirror.js { 13 | more_set_headers "Cache-Control: no-cache"; 14 | index wikimirror.js; 15 | } 16 | location = /wikimirror.js.map { 17 | more_set_headers "Cache-Control: no-cache"; 18 | index wikimirror.js.map; 19 | } -------------------------------------------------------------------------------- /conf/wiki-location-upload-fix.conf: -------------------------------------------------------------------------------- 1 | location = /wiki/File:Www.wikipedia.example.org_screenshot_2013.png { 2 | return 301 https://$host/wiki/File:Www.wikipedia.org_screenshot_2013.png; 3 | } 4 | location = /wiki/File:Www.wikipedia.example.org_screenshot_2018.png { 5 | return 301 https://$host/wiki/File:Www.wikipedia.org_screenshot_2018.png; 6 | } 7 | location = /wiki/File:Www.wikipedia.example.org_screenshot_2018-small.png { 8 | return 301 https://$host/wiki/File:Www.wikipedia.org_screenshot_2018-small.png; 9 | } 10 | location = /wiki/File:Www.wikipedia.example.org_screenshot_2018_(cropped).png { 11 | return 301 https://$host/wiki/File:Www.wikipedia.org_screenshot_2018_(cropped).png; 12 | } 13 | location = /wiki/File:Www.wiktionary.example.org_screenshot.png { 14 | return 301 https://$host/wiki/File:Www.wiktionary.org_screenshot.png; 15 | } -------------------------------------------------------------------------------- /conf/wiki-site-http.conf: -------------------------------------------------------------------------------- 1 | more_set_headers "X-Content-Type-Options: nosniff"; 2 | more_set_headers "X-Frame-Options: SAMEORIGIN"; 3 | more_set_headers 'X-Xss-Protection: "1; mode=block"'; 4 | 5 | if ($http_user_agent ~* "Bot|Spider|Barkrowler|BingPreview|Feedfetcher-Google|ia_archiver|libwww-perl|MBCrawler|Mediapartners-Google|MSNot-media|Python|Teoma|Yahoo! Slurp|^$") { 6 | return 444; 7 | } -------------------------------------------------------------------------------- /conf/wiki-site-ssl.conf: -------------------------------------------------------------------------------- 1 | listen 443 ssl; 2 | 3 | ssl_certificate /path/to/fullchain.crt; 4 | ssl_certificate_key /path/to/key; 5 | ssl_trusted_certificate /path/to/fullchain.crt; 6 | 7 | more_set_headers "Strict-Transport-Security: max-age=31536000; includeSubdomains; preload"; 8 | more_set_headers "X-Content-Type-Options: nosniff"; 9 | more_set_headers "X-Xss-Protection: 1; mode=block"; 10 | 11 | client_max_body_size 0; 12 | 13 | if ($http_user_agent ~* "Bot|Spider|Barkrowler|BingPreview|Feedfetcher-Google|ia_archiver|libwww-perl|MBCrawler|Mediapartners-Google|MSNot-media|Python|Teoma|Yahoo! Slurp|MSIE|Trident|^$") { 14 | return 444; 15 | } -------------------------------------------------------------------------------- /conf/wiki-sub.conf: -------------------------------------------------------------------------------- 1 | ################### 2 | subs_filter wikimediafoundation\.org wikimediafoundation.example.org ir; 3 | subs_filter (advisors(?:\.m)?|advisory(?:\.m)?|affcom|am(?:\.m)?|analytics|annual|api(?:\.m)?|ar(?:\.m)?|auditcom|bd(?:\.m)?|be(?:\.m)?|blog|board|boardgovcom|br(?:\.m)?|bugzilla|ca(?:\.m)?|chair|checkuser(?:\.m)?|cn(?:\.m)?|co(?:\.m)?|collab|(?:test-)?commons(?:\.m)?|config-master|cxserver|dbtree|design|developer|diff|dk(?:\.m)?|doc|ec(?:\.m)?|ee(?:\.m)?|electcom(?:\.m)?|etherpad|exec(?:\.m)?|fdc(?:\.m)?|fi(?:\.m)?|foundation(?:\.m)?|ge(?:\.m)?|gerrit|gitlab|gr(?:\.m)?|grafana|grants(?:\.m)?|graphite|hi(?:\.m)?|horizon|id(?:\.m)?|id-internal(?:\.m)?|idp|iegcom(?:\.m)?|il|incubator(?:\.m)?|intake-(?:analytics|logging)|integration|internal|labtestwikitech|legalteam(?:\.m)?|\/\/lists|login(?:\.m)?|logstash|mai(?:\.m)?|maps|meta(?:\.m)?|mk(?:\.m)?|movementroles|mx(?:\.m)?|ng(?:\.m)?|nl(?:\.m)?|no(?:\.m)?|noboard-chapters|noc|nyc(?:\.m)?|nz(?:\.m)?|office(?:\.m)?|ombuds(?:\.m)?|ombudsmen|ores|otrs-wiki(?:\.m)?|outreach(?:\.m)?|pa-us(?:\.m)?|people|performance|phabricator|pl(?:\.m)?|planet|policy|projectcom|pt(?:\.m)?|punjabi(?:\.m)?|quality(?:\.m)?|research|romd(?:\.m)?|rs(?:\.m)?|rt|ru(?:\.m)?|schema|se(?:\.m)?|searchcom|secure|spcom|species(?:\.m)?|static-(?:bugzilla|codereview)|steward(?:\.m)?|strategy(?:\.m)?|stream|svn|techblog|techconduct|ticket|toolsadmin|tr(?:\.m)?|transitionteam(?:\.m)?|transparency|ua(?:\.m)?|upload|usability|vote(?:\.m)?|vrt-wiki(?:\.m)?|wb(?:\.m)?|wikimania(?:200[5-9]|201[0-8]|team)?(?:\.m)?|wikitech(?:-static)?|www)\.wikimedia\.org $1.example.org ir; 4 | subs_filter (\.wiki(?:books|data|functions|news|pedia|quote|versity|voyage)|\.?wikisource|\.wiktionary|\.mediawiki)\.org $1.example.org ir; 5 | subs_filter \/\/wikimedia\.org\/api\/rest_v1\/media\/math\/render\/(png|svg) //latex-$1.example.org ir; 6 | subs_filter phab\.wmfusercontent\.org phab.example.org ir; 7 | subs_filter wma\.wmcloud\.org wma.example.org ir; 8 | ############bug fix 9 | subs_filter (?:m\.www\.|www\.m\.)(mediawiki|wiki(?:data|functions))\.org m.$1.example.org r; 10 | subs_filter '' '' r; 11 | subs_filter '' '' r; 12 | subs_filter '' '' r; 13 | subs_filter '' '' r; 14 | subs_filter '' '' r; 15 | subs_filter '' '' r; 16 | subs_filter '' '' r; 17 | ################### 18 | set $init "\n"; 19 | subs_filter '()(?!(?:|))' "$init$1" ir; 20 | subs_filter '()(?!)' "$init$1" ir; 21 | subs_filter "Request\sfrom\s((?:(?:1[0-9][0-9]\.)|(?:2[0-4][0-9]\.)|(?:25[0-5]\.)|(?:[1-9][0-9]\.)|(?:[0-9]\.)){3}(?:(?:1[0-9][0-9])|(?:2[0-4][0-9])|(?:25[0-5])|(?:[1-9][0-9])|(?:[0-9])))(.+?)" "Request from $remote_addr$2
Reverse proxy: example.org ($1) " r; 22 | ################### 23 | sub_filter "\.wikipedia\.org" "\.wikipedia\.(?:example\.)?org"; 24 | 25 | sub_filter_once off; 26 | sub_filter_types *; 27 | subs_filter_types *; -------------------------------------------------------------------------------- /conf/wiki.conf: -------------------------------------------------------------------------------- 1 | proxy_cookie_domain wikimediafoundation.org wikimediafoundation.example.org; 2 | proxy_cookie_domain ~(?(advisors(?:\.m)?|advisory(?:\.m)?|affcom|am(?:\.m)?|analytics|annual|api(?:\.m)?|ar(?:\.m)?|auditcom|bd(?:\.m)?|be(?:\.m)?|blog|board|boardgovcom|br(?:\.m)?|bugzilla|ca(?:\.m)?|chair|checkuser(?:\.m)?|cn(?:\.m)?|co(?:\.m)?|collab|(?:test-)?commons(?:\.m)?|config-master|cxserver|dbtree|design|developer|diff|dk(?:\.m)?|doc|ec(?:\.m)?|ee(?:\.m)?|electcom(?:\.m)?|etherpad|exec(?:\.m)?|fdc(?:\.m)?|fi(?:\.m)?|foundation(?:\.m)?|ge(?:\.m)?|gerrit|github|gr(?:\.m)?|grafana|grants(?:\.m)?|graphite|hi(?:\.m)?|horizon|id(?:\.m)?|id-internal(?:\.m)?|idp|iegcom(?:\.m)?|il|incubator(?:\.m)?|integration|internal|labtestwikitech|legalteam(?:\.m)?|lists|login(?:\.m)?|logstash|mai(?:\.m)?|maps|meta(?:\.m)?|mk(?:\.m)?|movementroles|mx(?:\.m)?|ng(?:\.m)?|nl(?:\.m)?|no(?:\.m)?|noboard-chapters|noc|nyc(?:\.m)?|nz(?:\.m)?|office(?:\.m)?|ombuds(?:\.m)?|ombudsmen|ores|otrs-wiki(?:\.m)?|outreach(?:\.m)?|pa-us(?:\.m)?|people|performance|phabricator|pl(?:\.m)?|planet|policy|projectcom|pt(?:\.m)?|punjabi(?:\.m)?|quality(?:\.m)?|research|romd(?:\.m)?|rs(?:\.m)?|rt|ru(?:\.m)?|se(?:\.m)?|schema|searchcom|secure|spcom|species(?:\.m)?|static-(?:bugzilla|codereview)|steward(?:\.m)?|strategy(?:\.m)?|stream|svn|techblog|techconduct|ticket|toolsadmin|tr(?:\.m)?|transitionteam(?:\.m)?|transparency|ua(?:\.m)?|upload|usability|vote(?:\.m)?|vrt-wiki(?:\.m)?|wb(?:\.m)?|wikimania(?:200[5-9]|201[0-8]|team)?(?:\.m)?|wikitech(?:-static)?|www)\.)?wikimedia\.org$ ${subcookie}example.org; 3 | proxy_cookie_domain ~(?(wiki(?:books|data|functions|news|pedia|quote|source|versity|voyage)|wiktionary|mediawiki)\.)org$ ${subcookie}example.org; 4 | proxy_cookie_domain phab.wmfusercontent.org phab.example.org; 5 | proxy_cookie_domain wma.wmcloud.org wma.example.org; 6 | 7 | proxy_hide_header age; 8 | proxy_hide_header backend-timing; 9 | proxy_hide_header content-location; 10 | proxy_hide_header content-security-policy; 11 | proxy_hide_header content-security-policy-report-only; 12 | proxy_hide_header host-header; 13 | proxy_hide_header link; 14 | proxy_hide_header mediawiki-cors-rejection; 15 | proxy_hide_header nel; 16 | proxy_hide_header p3p; 17 | proxy_hide_header permissions-policy; 18 | proxy_hide_header proxy-connection; 19 | proxy_hide_header referrer-policy; 20 | proxy_hide_header report-to; 21 | proxy_hide_header server-timing; 22 | proxy_hide_header strict-transport-security; 23 | proxy_hide_header timing-allow-origin; 24 | proxy_hide_header x-analytics; 25 | proxy_hide_header x-ats-timestamp; 26 | proxy_hide_header x-cache; 27 | proxy_hide_header x-cache-int; 28 | proxy_hide_header x-cache-status; 29 | proxy_hide_header x-client-ip; 30 | proxy_hide_header x-content-security-policy; 31 | proxy_hide_header x-content-security-policy-report-only; 32 | proxy_hide_header x-content-type-options; 33 | proxy_hide_header x-envoy-upstream-service-time; 34 | proxy_hide_header x-object-meta-sha1base36; 35 | proxy_hide_header x-powered-by; 36 | proxy_hide_header x-redirect-by; 37 | proxy_hide_header x-request-id; 38 | proxy_hide_header x-resource-location; 39 | proxy_hide_header x-rq; 40 | proxy_hide_header x-tec-api-origin; 41 | proxy_hide_header x-tec-api-root; 42 | proxy_hide_header x-tec-api-version; 43 | proxy_hide_header x-timestamp; 44 | proxy_hide_header x-trans-id; 45 | proxy_hide_header x-varnish; 46 | proxy_hide_header x-vector-backend-object; 47 | proxy_hide_header x-webkit-csp; 48 | proxy_hide_header x-webkit-csp-report-only; 49 | proxy_hide_header x-xss-protection; 50 | proxy_hide_header xkey; 51 | 52 | proxy_pass_header server; 53 | 54 | proxy_redirect ~^https?:\/\/www\.m\.(wiki(?:data|functions)|mediawiki)\.org\/$ https://m.$1.example.org/; 55 | proxy_redirect ~^https?:\/\/(m\.)?wikisource\.org(\/?(?:\S*?))$ https://$1wikisource.example.org$2; 56 | proxy_redirect ~^https?:\/\/(advisors(?:\.m)?|advisory(?:\.m)?|affcom|am(?:\.m)?|analytics|annual|api(?:\.m)?|ar(?:\.m)?|auditcom|bd(?:\.m)?|be(?:\.m)?|blog|board|boardgovcom|br(?:\.m)?|bugzilla|ca(?:\.m)?|chair|checkuser(?:\.m)?|cn(?:\.m)?|co(?:\.m)?|collab|(?:test-)?commons(?:\.m)?|config-master|cxserver|dbtree|design|developer|diff|dk(?:\.m)?|doc|ec(?:\.m)?|ee(?:\.m)?|electcom(?:\.m)?|etherpad|exec(?:\.m)?|fdc(?:\.m)?|fi(?:\.m)?|foundation(?:\.m)?|ge(?:\.m)?|gerrit|gitlab|gr(?:\.m)?|grafana|grants(?:\.m)?|graphite|hi(?:\.m)?|horizon|id(?:\.m)?|id-internal(?:\.m)?|idp|iegcom(?:\.m)?|il|incubator(?:\.m)?|intake-(?:analytics|logging)|integration|internal|labtestwikitech|legalteam(?:\.m)?|lists|login(?:\.m)?|logstash|mai(?:\.m)?|maps|meta(?:\.m)?|mk(?:\.m)?|movementroles|mx(?:\.m)?|ng(?:\.m)?|nl(?:\.m)?|no(?:\.m)?|noboard-chapters|noc|nyc(?:\.m)?|nz(?:\.m)?|office(?:\.m)?|ombuds(?:\.m)?|ombudsmen|ores|otrs-wiki(?:\.m)?|outreach(?:\.m)?|pa-us(?:\.m)?|people|performance|phabricator|piwik|pl(?:\.m)?|planet|policy|projectcom|pt(?:\.m)?|punjabi(?:\.m)?|quality(?:\.m)?|research|romd(?:\.m)?|rs(?:\.m)?|rt|ru(?:\.m)?|se(?:\.m)?|schema|searchcom|secure|spcom|species(?:\.m)?|static-(?:bugzilla|codereview)|steward(?:\.m)?|strategy(?:\.m)?|stream|svn|techblog|techconduct|ticket|toolsadmin|tr(?:\.m)?|transitionteam(?:\.m)?|transparency|ua(?:\.m)?|upload|usability|vote(?:\.m)?|vrt-wiki(?:\.m)?|wb(?:\.m)?|wikimania(?:200[5-9]|201[0-8]|team)?(?:\.m)?|wikitech(?:-static)?|www)\.wikimedia\.org(\/?(?:\S*?))$ https://$1.example.org$2; 57 | proxy_redirect ~^https?:\/\/wikimediafoundation\.org(\/?(?:\S*?))$ https://wikimediafoundation.example.org$1; 58 | proxy_redirect https://$subdomain.wikibooks.org/ https://$subdomain.wikibooks.example.org/; 59 | proxy_redirect https://$subdomain.m.wikibooks.org/ https://$subdomain.m.wikibooks.example.org/; 60 | proxy_redirect https://$subdomain.wikidata.org/ https://$subdomain.wikidata.example.org/; 61 | proxy_redirect https://$subdomain.m.wikidata.org/ https://$subdomain.m.wikidata.example.org/; 62 | proxy_redirect https://$subdomain.wikifunctions.org/ https://$subdomain.wikifunctions.example.org/; 63 | proxy_redirect https://$subdomain.wikinews.org/ https://$subdomain.wikinews.example.org/; 64 | proxy_redirect https://$subdomain.m.wikinews.org/ https://$subdomain.m.wikinews.example.org/; 65 | proxy_redirect https://$subdomain.wikipedia.org/ https://$subdomain.wikipedia.example.org/; 66 | proxy_redirect https://$subdomain.m.wikipedia.org/ https://$subdomain.m.wikipedia.example.org/; 67 | proxy_redirect https://$subdomain.wikiquote.org/ https://$subdomain.wikiquote.example.org/; 68 | proxy_redirect https://$subdomain.m.wikiquote.org/ https://$subdomain.m.wikiquote.example.org/; 69 | proxy_redirect https://$subdomain.wikisource.org/ https://$subdomain.wikisource.example.org/; 70 | proxy_redirect https://$subdomain.m.wikisource.org/ https://$subdomain.m.wikisource.example.org/; 71 | proxy_redirect https://$subdomain.wiktionary.org/ https://$subdomain.wiktionary.example.org/; 72 | proxy_redirect https://$subdomain.m.wiktionary.org/ https://$subdomain.m.wiktionary.example.org/; 73 | proxy_redirect https://$subdomain.wikiversity.org/ https://$subdomain.wikiversity.example.org/; 74 | proxy_redirect https://$subdomain.m.wikiversity.org/ https://$subdomain.m.wikiversity.example.org/; 75 | proxy_redirect https://$subdomain.wikivoyage.org/ https://$subdomain.wikivoyage.example.org/; 76 | proxy_redirect https://$subdomain.m.wikivoyage.org/ https://$subdomain.m.wikivoyage.example.org/; 77 | proxy_redirect https://$subdomain.mediawiki.org/ https://$subdomain.mediawiki.example.org/; 78 | proxy_redirect https://$subdomain.planet.wikimedia.org/ https://$subdomain.planet.example.org/; 79 | proxy_redirect https://$subdomain.wikimediafoundation.org/ https://$subdomain.wikimediafoundation.example.org/; 80 | proxy_redirect ~^https?:\/\/([0-9a-z-][^.]*(?:\.m)?)\.(wiki(?:books|data|functions|news|pedia|quote|source|versity|voyage)|wiktionary|mediawiki)\.org(\/?(?:\S*?))$ https://$1.$2.example.org$3; 81 | proxy_redirect ~^https?:\/\/([0-9a-z-][^.]+)\.planet\.wikimedia\.org(\/?(?:\S*?))$ https://$1.planet.example.org$2; 82 | proxy_redirect ~^https?:\/\/([0-9a-z-][^.]+)\.wikimediafoundation\.org(\/?(?:\S*?))$ https://$1.wikimediafoundation.example.org$2; 83 | 84 | proxy_set_header Accept $http_accept; 85 | proxy_set_header Accept-Language $http_accept_language; 86 | proxy_set_header User-Agent $http_user_agent; 87 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 88 | proxy_set_header X-Forwarded-Proto https; 89 | proxy_set_header X-Real-IP $remote_addr; 90 | 91 | proxy_ssl_server_name on; -------------------------------------------------------------------------------- /conf/wiki.nginx: -------------------------------------------------------------------------------- 1 | map $http_upgrade $connection_upgrade { 2 | default upgrade; 3 | "" close; 4 | } 5 | upstream wiki-IPAddress { 6 | # server 208.80.154.224:443; #美国阿什本 7 | # server 208.80.153.224:443; #美国卡罗尔顿 8 | # server 198.35.26.96:443; #美国旧金山 9 | # server 91.198.174.192:443; #荷兰阿姆斯特丹 10 | # server 103.102.166.224:443; #新加坡 11 | # server 185.15.58.224:443; #法国马赛 12 | keepalive 300; 13 | } 14 | upstream upload-IPAddress { 15 | # server 208.80.154.240:443; #美国阿什本 16 | # server 208.80.153.240:443; #美国卡罗尔顿 17 | # server 198.35.26.112:443; #美国旧金山 18 | # server 91.198.174.208:443; #荷兰阿姆斯特丹 19 | # server 103.102.166.240:443; #新加坡 20 | # server 185.15.58.240:443; #法国马赛 21 | keepalive 300; 22 | } 23 | upstream static-IPAddress { 24 | server 127.0.0.1:80; 25 | } 26 | 27 | server { 28 | listen 80 reuseport default; 29 | listen 443 ssl reuseport default; 30 | server_name _; 31 | include /path/to/wikimirror/conf/wiki-site-http.conf; 32 | 33 | ssl_certificate /path/to/fullchain.crt; 34 | ssl_certificate_key /path/to/key; 35 | ssl_trusted_certificate /path/to/fullchain.crt; 36 | 37 | return 301 https://www.example.org; 38 | } 39 | 40 | server { 41 | listen 80; 42 | server_name static-internal.example.org; 43 | 44 | if ($http_user_agent ~* "Bot|Spider|Barkrowler|BingPreview|Feedfetcher-Google|ia_archiver|libwww-perl|MBCrawler|Mediapartners-Google|MSNot-media|Python|Teoma|Yahoo! Slurp|^$") { 45 | return 444; 46 | } 47 | 48 | root /path/to/wikimirror/static; 49 | error_page 400 403 404 500 = https://static-internal.example.org; 50 | 51 | location = / { 52 | return 204; 53 | } 54 | location = /robots.txt { 55 | index robots.txt; 56 | } 57 | location ~ ^(?:.+?)\.(?:gif|ico|jpe?g|png|svg|webp)$ { 58 | expires 30d; 59 | } 60 | } 61 | 62 | server { 63 | listen 80; 64 | server_name example.org; 65 | include /path/to/wikimirror/conf/wiki-site-http.conf; 66 | 67 | return 301 https://$host; 68 | } 69 | 70 | server { 71 | listen 443 ssl; 72 | server_name example.org; 73 | include /path/to/wikimirror/conf/wiki-site-http.conf; 74 | 75 | ssl_certificate /path/to/fullchain.crt; 76 | ssl_certificate_key /path/to/key; 77 | ssl_trusted_certificate /path/to/fullchain.crt; 78 | 79 | more_set_headers "Strict-Transport-Security: max-age=31536000; includeSubdomains; preload"; 80 | 81 | return 301 https://www.$host; 82 | } 83 | 84 | server { 85 | listen 80; 86 | server_name ~^[^.]+(?:\.m)?(?:\.(?:wiki(?:books|data|functions|news|pedia|quote|source|versity|voyage)|wiktionary|mediawiki|planet|wikimediafoundation))?\.example\.org$; 87 | include /path/to/wikimirror/conf/wiki-site-http.conf; 88 | 89 | return 301 https://$host$request_uri; 90 | } 91 | 92 | server { 93 | server_name ~^(?(analytics|annual|bugzilla|config-master|cxserver|dbtree|design|developer|doc|grafana|graphite|horizon|id-internal(?:\.m)?|il|integration|logstash|noc|office(?:\.m)?|performance|planet|research|schema|secure|static-(?:bugzilla|codereview)|svn|ticket|toolsadmin|transparency))\.example\.org$; 94 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 95 | set $hostdomain wikimedia; 96 | 97 | include /path/to/wikimirror/conf/wiki-location-api.conf; 98 | include /path/to/wikimirror/conf/wiki-location-main.conf; 99 | include /path/to/wikimirror/conf/wiki-location-static.conf; 100 | proxy_hide_header Upgrade; 101 | } 102 | 103 | server { 104 | server_name ~^(?(advisors(?:\.m)?|advisory(?:\.m)?|affcom|am(?:\.m)?|api(?:\.m)?|ar(?:\.m)?|auditcom|bd(?:\.m)?|be(?:\.m)?|board|boardgovcom|br(?:\.m)?|ca(?:\.m)?|chair|checkuser(?:\.m)?|cn(?:\.m)?|co(?:\.m)?|collab|(?:test-)?commons(?:\.m)?|dk(?:\.m)?|ec(?:\.m)?|ee(?:\.m)?|electcom(?:\.m)?|exec(?:\.m)?|fdc(?:\.m)?|fi(?:\.m)?|foundation(?:\.m)?|ge(?:\.m)?|gr(?:\.m)?|grants(?:\.m)?|hi(?:\.m)?|id(?:\.m)?|iegcom(?:\.m)?|incubator(?:\.m)?|internal|labtestwikitech|legalteam(?:\.m)?|login(?:\.m)?|mai(?:\.m)?|meta(?:\.m)?|mk(?:\.m)?|movementroles|mx(?:\.m)?|ng(?:\.m)?|nl(?:\.m)?|no(?:\.m)?|noboard-chapters|nyc(?:\.m)?|nz(?:\.m)?|ombuds(?:\.m)?|ombudsmen|ores|otrs-wiki(?:\.m)?|outreach(?:\.m)?|pa-us(?:\.m)?|people|pl(?:\.m)?|pt(?:\.m)?|projectcom|punjabi(?:\.m)?|quality(?:\.m)?|romd(?:\.m)?|rs(?:\.m)?|rt|ru(?:\.m)?|se(?:\.m)?|searchcom|spcom|species(?:\.m)?|steward(?:\.m)?|strategy(?:\.m)?|techconduct|tr(?:\.m)?|transitionteam(?:\.m)?|ua(?:\.m)?|usability|vote(?:\.m)?|vrt-wiki(?:\.m)?|wb(?:\.m)?|wikimania(?:200[5-9]|201[0-8]|team)?(?:\.m)?|wikitech))\.example\.org$; 105 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 106 | set $hostdomain wikimedia; 107 | 108 | include /path/to/wikimirror/conf/wiki-location-api.conf; 109 | include /path/to/wikimirror/conf/wiki-location-main.conf; 110 | include /path/to/wikimirror/conf/wiki-location-static.conf; 111 | include /path/to/wikimirror/conf/wiki-location-upload-fix.conf; 112 | proxy_hide_header Upgrade; 113 | } 114 | 115 | server { 116 | server_name blog.example.org; 117 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 118 | set $hostdomain wikimedia; 119 | set $subdomain blog; 120 | 121 | location / { 122 | include /path/to/wikimirror/conf/wiki.conf; 123 | proxy_pass https://blog.wikimedia.org; 124 | proxy_set_header Host $subdomain.$hostdomain.org; 125 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 126 | } 127 | include /path/to/wikimirror/conf/wiki-location-static.conf; 128 | proxy_hide_header Upgrade; 129 | } 130 | 131 | server { 132 | server_name diff.example.org; 133 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 134 | set $hostdomain wikimedia; 135 | set $subdomain diff; 136 | 137 | location / { 138 | include /path/to/wikimirror/conf/wiki-sub.conf; 139 | include /path/to/wikimirror/conf/wiki.conf; 140 | proxy_pass https://diff.wikimedia.org; 141 | proxy_set_header Accept-Encoding ""; 142 | proxy_set_header Host $subdomain.$hostdomain.org; 143 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 144 | } 145 | include /path/to/wikimirror/conf/wiki-location-static.conf; 146 | proxy_hide_header Upgrade; 147 | } 148 | 149 | server { 150 | server_name etherpad.example.org; 151 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 152 | set $hostdomain wikimedia; 153 | set $subdomain etherpad; 154 | 155 | location / { 156 | include /path/to/wikimirror/conf/wiki-sub.conf; 157 | include /path/to/wikimirror/conf/wiki.conf; 158 | proxy_pass https://wiki-IPAddress; 159 | proxy_hide_header Upgrade; 160 | proxy_set_header Accept-Encoding ""; 161 | proxy_set_header Host $subdomain.$hostdomain.org; 162 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 163 | } 164 | location /socket.io { 165 | include /path/to/wikimirror/conf/wiki.conf; 166 | proxy_http_version 1.1; 167 | proxy_pass https://wiki-IPAddress/socket.io; 168 | proxy_read_timeout 300s; 169 | proxy_send_timeout 300s; 170 | proxy_set_header Connection $connection_upgrade; 171 | proxy_set_header Host $subdomain.$hostdomain.org; 172 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 173 | proxy_set_header Upgrade $http_upgrade; 174 | } 175 | include /path/to/wikimirror/conf/wiki-location-static.conf; 176 | } 177 | 178 | server { 179 | server_name gerrit.example.org; 180 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 181 | set $hostdomain wikimedia; 182 | set $subdomain gerrit; 183 | 184 | location / { 185 | rewrite ^\/r\/plugins\/gitiles\/wikipedia\/gadgets\/ProveIt\/\+\/master\/i18n\/zh-cn\.json(.*?)$ /r/plugins/gitiles/wikipedia/gadgets/ProveIt/+/master/i18n/zh-hans.json$1 break; 186 | more_set_headers "Access-Control-Allow-Headers: $http_access_control_request_headers" "Access-Control-Allow-Methods: GET, HEAD, POST" "Access-Control-Allow-Origin: $http_origin"; 187 | include /path/to/wikimirror/conf/wiki-sub.conf; 188 | include /path/to/wikimirror/conf/wiki.conf; 189 | proxy_pass https://gerrit.wikimedia.org; 190 | proxy_hide_header access-control-allow-headers; 191 | proxy_hide_header access-control-allow-methods; 192 | proxy_hide_header access-control-allow-origin; 193 | proxy_set_header Accept-Encoding ""; 194 | proxy_set_header Host $subdomain.$hostdomain.org; 195 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 196 | } 197 | include /path/to/wikimirror/conf/wiki-location-static.conf; 198 | proxy_hide_header Upgrade; 199 | } 200 | 201 | server { 202 | server_name gitlab.example.org; 203 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 204 | set $hostdomain wikimedia; 205 | set $subdomain gitlab; 206 | 207 | location / { 208 | include /path/to/wikimirror/conf/wiki-sub.conf; 209 | include /path/to/wikimirror/conf/wiki.conf; 210 | proxy_pass https://gitlab.wikimedia.org; 211 | proxy_set_header Accept-Encoding ""; 212 | proxy_set_header Host $subdomain.$hostdomain.org; 213 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 214 | } 215 | include /path/to/wikimirror/conf/wiki-location-static.conf; 216 | proxy_hide_header Upgrade; 217 | } 218 | 219 | server { 220 | server_name idp.example.org; 221 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 222 | set $hostdomain wikimedia; 223 | set $subdomain idp; 224 | 225 | location / { 226 | include /path/to/wikimirror/conf/wiki-sub.conf; 227 | include /path/to/wikimirror/conf/wiki.conf; 228 | proxy_pass https://idp.wikimedia.org; 229 | proxy_set_header Accept-Encoding ""; 230 | proxy_set_header Host $subdomain.$hostdomain.org; 231 | proxy_set_header Origin https://$subdomain.$hostdomain.org; 232 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 233 | } 234 | include /path/to/wikimirror/conf/wiki-location-static.conf; 235 | proxy_hide_header Upgrade; 236 | } 237 | 238 | server { 239 | server_name lists.example.org; 240 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 241 | set $hostdomain wikimedia; 242 | set $subdomain lists; 243 | 244 | location / { 245 | include /path/to/wikimirror/conf/wiki-sub.conf; 246 | include /path/to/wikimirror/conf/wiki.conf; 247 | proxy_pass https://lists.wikimedia.org; 248 | proxy_set_header Accept-Encoding ""; 249 | proxy_set_header Host $subdomain.$hostdomain.org; 250 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 251 | } 252 | include /path/to/wikimirror/conf/wiki-location-static.conf; 253 | proxy_hide_header Upgrade; 254 | } 255 | 256 | server { 257 | server_name maps.example.org; 258 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 259 | set $hostdomain wikimedia; 260 | set $subdomain maps; 261 | 262 | location / { 263 | include /path/to/wikimirror/conf/wiki-sub.conf; 264 | include /path/to/wikimirror/conf/wiki.conf; 265 | proxy_pass https://upload-IPAddress; 266 | proxy_set_header Accept-Encoding ""; 267 | proxy_set_header Host $subdomain.$hostdomain.org; 268 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 269 | } 270 | location /img { 271 | if ($arg_domain ~* (.*?)(\.wiki(?:books|data|functions|news|pedia|quote|versity|voyage)|\.?wikisource|\.wiktionary|\.mediawiki)\.example\.org) { 272 | set $arg_domain $1$2.org; 273 | return 301 https://$host$uri?lang=$arg_lang&domain=$arg_domain&title=$arg_title&groups=$arg_groups; 274 | } 275 | include /path/to/wikimirror/conf/wiki.conf; 276 | proxy_pass https://upload-IPAddress/img; 277 | proxy_set_header Host $subdomain.$hostdomain.org; 278 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 279 | } 280 | include /path/to/wikimirror/conf/wiki-location-static.conf; 281 | proxy_hide_header Upgrade; 282 | } 283 | 284 | server { 285 | server_name phabricator.example.org; 286 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 287 | set $hostdomain wikimedia; 288 | set $subdomain phabricator; 289 | 290 | location = / { 291 | include /path/to/wikimirror/conf/wiki-sub.conf; 292 | include /path/to/wikimirror/conf/wiki.conf; 293 | proxy_http_version 1.1; 294 | proxy_pass https://wiki-IPAddress; 295 | proxy_read_timeout 300s; 296 | proxy_send_timeout 300s; 297 | proxy_set_header Accept-Encoding ""; 298 | proxy_set_header Connection $connection_upgrade; 299 | proxy_set_header Host $subdomain.$hostdomain.org; 300 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 301 | proxy_set_header Upgrade $http_upgrade; 302 | } 303 | location / { 304 | include /path/to/wikimirror/conf/wiki-sub.conf; 305 | include /path/to/wikimirror/conf/wiki.conf; 306 | proxy_pass https://wiki-IPAddress; 307 | proxy_hide_header Upgrade; 308 | proxy_set_header Accept-Encoding ""; 309 | proxy_set_header Host $subdomain.$hostdomain.org; 310 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 311 | } 312 | include /path/to/wikimirror/conf/wiki-location-static.conf; 313 | } 314 | 315 | server { 316 | server_name policy.example.org; 317 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 318 | set $hostdomain wikimedia; 319 | set $subdomain policy; 320 | 321 | location / { 322 | include /path/to/wikimirror/conf/wiki-sub.conf; 323 | include /path/to/wikimirror/conf/wiki.conf; 324 | proxy_pass https://policy.wikimedia.org; 325 | proxy_set_header Accept-Encoding ""; 326 | proxy_set_header Host $subdomain.$hostdomain.org; 327 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 328 | } 329 | include /path/to/wikimirror/conf/wiki-location-static.conf; 330 | proxy_hide_header Upgrade; 331 | } 332 | 333 | server { 334 | server_name stream.example.org; 335 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 336 | set $hostdomain wikimedia; 337 | set $subdomain stream; 338 | 339 | location / { 340 | include /path/to/wikimirror/conf/wiki-sub.conf; 341 | include /path/to/wikimirror/conf/wiki.conf; 342 | proxy_pass https://stream.wikimedia.org; 343 | proxy_hide_header Upgrade; 344 | proxy_set_header Accept-Encoding ""; 345 | proxy_set_header Host $subdomain.$hostdomain.org; 346 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 347 | } 348 | location /v2/stream { 349 | include /path/to/wikimirror/conf/wiki.conf; 350 | proxy_http_version 1.1; 351 | proxy_pass https://stream.wikimedia.org/v2/stream; 352 | proxy_read_timeout 300s; 353 | proxy_send_timeout 300s; 354 | proxy_set_header Connection $connection_upgrade; 355 | proxy_set_header Host $subdomain.$hostdomain.org; 356 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 357 | proxy_set_header Upgrade $http_upgrade; 358 | } 359 | include /path/to/wikimirror/conf/wiki-location-static.conf; 360 | } 361 | 362 | server { 363 | server_name techblog.example.org; 364 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 365 | set $hostdomain wikimedia; 366 | set $subdomain techblog; 367 | 368 | location / { 369 | include /path/to/wikimirror/conf/wiki-sub.conf; 370 | include /path/to/wikimirror/conf/wiki.conf; 371 | proxy_pass https://techblog.wikimedia.org; 372 | proxy_set_header Accept-Encoding ""; 373 | proxy_set_header Host $subdomain.$hostdomain.org; 374 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 375 | } 376 | include /path/to/wikimirror/conf/wiki-location-static.conf; 377 | proxy_hide_header Upgrade; 378 | } 379 | 380 | server { 381 | server_name ~^(?((?:m|www)\.)?)wikimediafoundation\.example\.org$; 382 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 383 | set $hostdomain wikimediafoundation; 384 | 385 | location / { 386 | include /path/to/wikimirror/conf/wiki-sub.conf; 387 | include /path/to/wikimirror/conf/wiki.conf; 388 | proxy_pass https://wikimediafoundation.org; 389 | proxy_set_header Accept-Encoding ""; 390 | proxy_set_header Host $subdomain$hostdomain.org; 391 | proxy_set_header Referer https://$subdomain$hostdomain.org$request_uri; 392 | } 393 | include /path/to/wikimirror/conf/wiki-location-static.conf; 394 | proxy_hide_header Upgrade; 395 | } 396 | 397 | server { 398 | server_name wikitech-static.example.org; 399 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 400 | set $hostdomain wikimedia; 401 | set $subdomain wikitech-static; 402 | 403 | location / { 404 | include /path/to/wikimirror/conf/wiki-sub.conf; 405 | include /path/to/wikimirror/conf/wiki.conf; 406 | proxy_pass https://wikitech-static.wikimedia.org; 407 | proxy_set_header Accept-Encoding ""; 408 | proxy_set_header Host $subdomain.$hostdomain.org; 409 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 410 | } 411 | include /path/to/wikimirror/conf/wiki-location-static.conf; 412 | proxy_hide_header Upgrade; 413 | } 414 | 415 | server { 416 | server_name intake-analytics.example.org intake-logging.example.org piwik.example.org; 417 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 418 | 419 | return 204; 420 | } 421 | 422 | server { 423 | server_name latex-png.example.org; 424 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 425 | set $hostdomain wikimedia; 426 | 427 | add_header Content-Security-Policy "default-src 'none'; frame-ancestors 'none'; img-src 'self'"; 428 | 429 | location / { 430 | include /path/to/wikimirror/conf/wiki.conf; 431 | proxy_pass https://wiki-IPAddress/api/rest_v1/media/math/render/png/; 432 | proxy_hide_header set-cookie; 433 | proxy_set_header Host $hostdomain.org; 434 | proxy_set_header Referer https://$hostdomain.org$request_uri; 435 | } 436 | include /path/to/wikimirror/conf/wiki-location-static.conf; 437 | proxy_hide_header Upgrade; 438 | } 439 | 440 | server { 441 | server_name latex-svg.example.org; 442 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 443 | set $hostdomain wikimedia; 444 | 445 | location / { 446 | include /path/to/wikimirror/conf/wiki.conf; 447 | proxy_pass https://wiki-IPAddress/api/rest_v1/media/math/render/svg/; 448 | proxy_hide_header set-cookie; 449 | proxy_set_header Accept-Encoding ""; 450 | proxy_set_header Host $hostdomain.org; 451 | proxy_set_header Referer https://$hostdomain.org$request_uri; 452 | } 453 | include /path/to/wikimirror/conf/wiki-location-static.conf; 454 | proxy_hide_header Upgrade; 455 | } 456 | 457 | server { 458 | server_name pageviews.example.org; 459 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 460 | set $hostdomain wikimedia; 461 | 462 | location / { 463 | more_set_headers "Access-Control-Allow-Headers: $http_access_control_request_headers" "Access-Control-Allow-Methods: GET, HEAD, POST" "Access-Control-Allow-Origin: $http_origin"; 464 | if ($request_uri ~* ^\/.*?(?:\.wiki(?:books|data|news|pedia|quote|versity|voyage)|\.?wikisource|\.wiktionary|\.mediawiki)\.example\.org\/.*?$) { 465 | rewrite ^\/(.*?)(\.wiki(?:books|data|functions|news|pedia|quote|versity|voyage)|\.?wikisource|\.wiktionary|\.mediawiki)\.example\.org\/(.*?)$ /$1$2.org/$3 redirect; 466 | } 467 | include /path/to/wikimirror/conf/wiki-sub.conf; 468 | include /path/to/wikimirror/conf/wiki.conf; 469 | proxy_pass https://wiki-IPAddress; 470 | proxy_hide_header access-control-allow-headers; 471 | proxy_hide_header access-control-allow-methods; 472 | proxy_hide_header access-control-allow-origin; 473 | proxy_hide_header set-cookie; 474 | proxy_set_header Accept-Encoding ""; 475 | proxy_set_header Host $hostdomain.org; 476 | proxy_set_header Referer https://$hostdomain.org$request_uri; 477 | } 478 | include /path/to/wikimirror/conf/wiki-location-static.conf; 479 | proxy_hide_header Upgrade; 480 | } 481 | 482 | server { 483 | server_name phab.example.org; 484 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 485 | set $hostdomain wmfusercontent; 486 | set $subdomain phab; 487 | 488 | location / { 489 | include /path/to/wikimirror/conf/wiki-sub.conf; 490 | include /path/to/wikimirror/conf/wiki.conf; 491 | proxy_pass https://phab.wmfusercontent.org; 492 | proxy_set_header Accept-Encoding ""; 493 | proxy_set_header Host $subdomain.$hostdomain.org; 494 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 495 | } 496 | location /file { 497 | more_set_headers "Content-Security-Policy: default-src https://phab.example.org; base-uri 'none'; connect-src 'self'; form-action 'self'; frame-ancestors 'none'; frame-src 'self'; img-src https://phab.example.org data:; object-src 'none'; script-src https://phab.example.org; style-src https://phab.example.org 'unsafe-inline'"; 498 | include /path/to/wikimirror/conf/wiki-sub.conf; 499 | include /path/to/wikimirror/conf/wiki.conf; 500 | proxy_pass https://phab.wmfusercontent.org/file; 501 | proxy_set_header Accept-Encoding ""; 502 | proxy_set_header Host $subdomain.$hostdomain.org; 503 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 504 | } 505 | include /path/to/wikimirror/conf/wiki-location-static.conf; 506 | proxy_hide_header Upgrade; 507 | } 508 | 509 | server { 510 | server_name recommend.example.org; 511 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 512 | 513 | location / { 514 | more_set_headers "Access-Control-Allow-Headers: $http_access_control_request_headers" "Access-Control-Allow-Methods: GET, HEAD, POST" "Access-Control-Allow-Origin: $http_origin"; 515 | include /path/to/wikimirror/conf/wiki-sub.conf; 516 | include /path/to/wikimirror/conf/wiki.conf; 517 | proxy_pass https://recommend.wmflabs.org; 518 | proxy_hide_header access-control-allow-headers; 519 | proxy_hide_header access-control-allow-methods; 520 | proxy_hide_header access-control-allow-origin; 521 | proxy_hide_header set-cookie; 522 | proxy_hide_header x-clacks-overhead; 523 | proxy_set_header Accept-Encoding ""; 524 | proxy_set_header Host recommend.wmflabs.org; 525 | proxy_set_header Referer https://recommend.wmflabs.org$request_uri; 526 | } 527 | include /path/to/wikimirror/conf/wiki-location-static.conf; 528 | proxy_hide_header Upgrade; 529 | } 530 | 531 | server { 532 | server_name upload.example.org; 533 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 534 | set $hostdomain wikimedia; 535 | set $subdomain upload; 536 | 537 | location / { 538 | include /path/to/wikimirror/conf/wiki.conf; 539 | proxy_pass https://upload-IPAddress; 540 | proxy_set_header Accept-Encoding ""; 541 | proxy_set_header Host $subdomain.$hostdomain.org; 542 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 543 | } 544 | location /wikimirror/zh/darkmode { 545 | proxy_pass http://static-IPAddress/images/darkmode; 546 | proxy_set_header Host static-internal.example.org; 547 | } 548 | include /path/to/wikimirror/conf/wiki-location-static.conf; 549 | proxy_hide_header Upgrade; 550 | } 551 | 552 | server { 553 | server_name wma.example.org; 554 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 555 | set $hostdomain wmcloud; 556 | set $subdomain wma; 557 | 558 | location / { 559 | include /path/to/wikimirror/conf/wiki-sub.conf; 560 | include /path/to/wikimirror/conf/wiki.conf; 561 | proxy_pass https://wma.wmcloud.org; 562 | proxy_set_header Accept-Encoding ""; 563 | proxy_set_header Host $subdomain.$hostdomain.org; 564 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 565 | } 566 | include /path/to/wikimirror/conf/wiki-location-static.conf; 567 | proxy_hide_header Upgrade; 568 | } 569 | 570 | server { 571 | server_name xtools-api.example.org; 572 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 573 | 574 | location / { 575 | more_set_headers "Access-Control-Allow-Headers: $http_access_control_request_headers" "Access-Control-Allow-Methods: GET, HEAD, POST" "Access-Control-Allow-Origin: $http_origin"; 576 | if ($request_uri ~* ^\/.*?(?:\.wiki(?:books|data|news|pedia|quote|versity|voyage)|\.?wikisource|\.wiktionary|\.mediawiki)\.example\.org\/.*?$) { 577 | rewrite ^\/(.*?)(\.wiki(?:books|data|functions|news|pedia|quote|versity|voyage)|\.?wikisource|\.wiktionary|\.mediawiki)\.example\.org\/(.*?)$ /$1$2.org/$3 redirect; 578 | } 579 | error_page 404 = @errors; 580 | include /path/to/wikimirror/conf/wiki.conf; 581 | proxy_pass https://xtools.wmcloud.org/api/; 582 | proxy_hide_header access-control-allow-headers; 583 | proxy_hide_header access-control-allow-methods; 584 | proxy_hide_header access-control-allow-origin; 585 | proxy_hide_header set-cookie; 586 | proxy_hide_header x-clacks-overhead; 587 | proxy_intercept_errors on; 588 | proxy_set_header Accept-Encoding ""; 589 | proxy_set_header Host xtools.wmcloud.org; 590 | proxy_set_header Referer https://xtools.wmcloud.org$request_uri; 591 | } 592 | location @errors { 593 | return 204; 594 | } 595 | include /path/to/wikimirror/conf/wiki-location-static.conf; 596 | proxy_hide_header Upgrade; 597 | } 598 | 599 | server { 600 | server_name 20.wikipedia.example.org; 601 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 602 | 603 | return 302 https://wikimediafoundation.example.org/wikipedia20/; 604 | } 605 | 606 | server { 607 | server_name ~^(?(m\.)?)wikisource\.example\.org$; 608 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 609 | set $hostdomain wikisource; 610 | 611 | location / { 612 | include /path/to/wikimirror/conf/wiki-sub.conf; 613 | include /path/to/wikimirror/conf/wiki.conf; 614 | proxy_pass https://wiki-IPAddress; 615 | proxy_set_header Accept-Encoding ""; 616 | proxy_set_header Host $subdomain$hostdomain.org; 617 | proxy_set_header Referer https://$subdomain$hostdomain.org$request_uri; 618 | } 619 | location /beacon { 620 | return 204; 621 | } 622 | location /api/rest_v1 { 623 | more_set_headers "Access-Control-Allow-Headers: $http_access_control_request_headers" "Access-Control-Allow-Methods: GET, HEAD, POST" "Access-Control-Allow-Origin: $http_origin"; 624 | include /path/to/wikimirror/conf/wiki-sub.conf; 625 | include /path/to/wikimirror/conf/wiki.conf; 626 | proxy_pass https://wiki-IPAddress; 627 | proxy_hide_header access-control-allow-headers; 628 | proxy_hide_header access-control-allow-methods; 629 | proxy_hide_header access-control-allow-origin; 630 | proxy_set_header Accept-Encoding ""; 631 | proxy_set_header Host $subdomain$hostdomain.org; 632 | proxy_set_header Referer https://$subdomain$hostdomain.org$request_uri; 633 | } 634 | location /api/rest_v1/page/pdf { 635 | more_set_headers "Access-Control-Allow-Headers: $http_access_control_request_headers" "Access-Control-Allow-Methods: GET, HEAD, POST" "Access-Control-Allow-Origin: $http_origin"; 636 | include /path/to/wikimirror/conf/wiki.conf; 637 | proxy_pass https://wiki-IPAddress; 638 | proxy_hide_header access-control-allow-headers; 639 | proxy_hide_header access-control-allow-methods; 640 | proxy_hide_header access-control-allow-origin; 641 | proxy_set_header Host $subdomain.$hostdomain.org; 642 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 643 | } 644 | location /w/api.php { 645 | more_set_headers "Access-Control-Allow-Headers: $http_access_control_request_headers" "Access-Control-Allow-Methods: GET, HEAD, POST" "Access-Control-Allow-Origin: $http_origin"; 646 | include /path/to/wikimirror/conf/wiki-sub.conf; 647 | include /path/to/wikimirror/conf/wiki.conf; 648 | proxy_pass https://wiki-IPAddress/w/api.php; 649 | proxy_hide_header access-control-allow-headers; 650 | proxy_hide_header access-control-allow-methods; 651 | proxy_hide_header access-control-allow-origin; 652 | proxy_set_header Accept-Encoding ""; 653 | proxy_set_header Host $subdomain$hostdomain.org; 654 | proxy_set_header Referer https://$subdomain$hostdomain.org$request_uri; 655 | } 656 | location /w/index.php { 657 | more_set_headers "Access-Control-Allow-Headers: $http_access_control_request_headers" "Access-Control-Allow-Methods: GET, HEAD, POST" "Access-Control-Allow-Origin: $http_origin"; 658 | include /path/to/wikimirror/conf/wiki-sub.conf; 659 | include /path/to/wikimirror/conf/wiki.conf; 660 | proxy_pass https://wiki-IPAddress/w/index.php; 661 | proxy_hide_header access-control-allow-headers; 662 | proxy_hide_header access-control-allow-methods; 663 | proxy_hide_header access-control-allow-origin; 664 | proxy_set_header Accept-Encoding ""; 665 | proxy_set_header Host $subdomain$hostdomain.org; 666 | proxy_set_header Referer https://$subdomain$hostdomain.org$request_uri; 667 | } 668 | include /path/to/wikimirror/conf/wiki-location-static.conf; 669 | proxy_hide_header Upgrade; 670 | } 671 | 672 | server { 673 | server_name ~^(?[^.]+(?:\.m)?)?\.planet\.example\.org$; 674 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 675 | set $hostdomain planet.wikimedia; 676 | 677 | include /path/to/wikimirror/conf/wiki-location-main.conf; 678 | include /path/to/wikimirror/conf/wiki-location-static.conf; 679 | proxy_hide_header Upgrade; 680 | } 681 | 682 | server { 683 | server_name ~^(?[^.]+(?:\.m)?)?\.(?(wiki(?:books|data|functions|news|pedia|quote|source|versity|voyage)|wiktionary|mediawiki))\.example\.org$; 684 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 685 | 686 | if ($subdomain ~* ^(?:(?:m|www)\.m)$) { 687 | return 301 https://www.$hostdomain.example.org; 688 | } 689 | 690 | include /path/to/wikimirror/conf/wiki-location-api.conf; 691 | include /path/to/wikimirror/conf/wiki-location-main.conf; 692 | include /path/to/wikimirror/conf/wiki-location-static.conf; 693 | include /path/to/wikimirror/conf/wiki-location-upload-fix.conf; 694 | proxy_hide_header Upgrade; 695 | } 696 | 697 | server { 698 | server_name www.example.org; 699 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 700 | set $hostdomain wikimedia; 701 | set $subdomain www; 702 | 703 | error_page 400 403 404 500 = https://www.example.org; 704 | 705 | location / { 706 | return 302 https://www.wikipedia.example.org; 707 | } 708 | location ^~ /static/images/wmf { 709 | include /path/to/wikimirror/conf/wiki.conf; 710 | proxy_pass https://wiki-IPAddress; 711 | proxy_hide_header set-cookie; 712 | proxy_set_header Host $subdomain.$hostdomain.org; 713 | proxy_set_header Referer https://$subdomain.$hostdomain.org$request_uri; 714 | } 715 | include /path/to/wikimirror/conf/wiki-location-static.conf; 716 | proxy_hide_header Upgrade; 717 | } 718 | 719 | server { 720 | server_name ~^(?[^.]+(?:\.(?:m|wikimediafoundation))?)?\.example\.org$; 721 | include /path/to/wikimirror/conf/wiki-site-ssl.conf; 722 | 723 | error_page 400 403 404 500 = https://www.example.org; 724 | 725 | if ($subdomain ~* ^(?:m(?:\.m)?|www\.m)$) { 726 | return 301 https://www.wikipedia.example.org; 727 | } 728 | 729 | location / { 730 | return 302 https://$subdomain.wikipedia.example.org; 731 | } 732 | include /path/to/wikimirror/conf/wiki-location-static.conf; 733 | } -------------------------------------------------------------------------------- /nginx.conf: -------------------------------------------------------------------------------- 1 | ... 2 | 3 | worker_rlimit_nofile 65535; 4 | pcre_jit on; 5 | 6 | events { 7 | ... 8 | 9 | accept_mutex on; 10 | multi_accept on; 11 | use epoll; 12 | worker_connections 65535; 13 | } 14 | 15 | http { 16 | ... 17 | 18 | set_real_ip_from 0.0.0.0/0; 19 | real_ip_header X-Forwarded-For; 20 | 21 | client_header_buffer_size 4k; 22 | large_client_header_buffers 32 8k; 23 | proxy_buffers 32 32k; 24 | proxy_buffer_size 128k; 25 | proxy_busy_buffers_size 256k; 26 | 27 | ssl_ciphers TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA; 28 | ssl_protocols TLSv1.2 TLSv1.3; 29 | ssl_prefer_server_ciphers on; 30 | ssl_stapling on; 31 | ssl_stapling_verify on; 32 | 33 | # http2 on; # 需要Nginx >= 1.25.1 34 | 35 | include /path/to/wikimirror/conf/wiki.nginx; 36 | } -------------------------------------------------------------------------------- /static/images/darkmode/zhwiki-1.5x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnYiEE/nginx-wikimirror/ac4e87defdecbdc20cfc9796c7edc98d10b59457/static/images/darkmode/zhwiki-1.5x.png -------------------------------------------------------------------------------- /static/images/darkmode/zhwiki-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnYiEE/nginx-wikimirror/ac4e87defdecbdc20cfc9796c7edc98d10b59457/static/images/darkmode/zhwiki-2x.png -------------------------------------------------------------------------------- /static/images/darkmode/zhwiki-hans-1.5x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnYiEE/nginx-wikimirror/ac4e87defdecbdc20cfc9796c7edc98d10b59457/static/images/darkmode/zhwiki-hans-1.5x.png -------------------------------------------------------------------------------- /static/images/darkmode/zhwiki-hans-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnYiEE/nginx-wikimirror/ac4e87defdecbdc20cfc9796c7edc98d10b59457/static/images/darkmode/zhwiki-hans-2x.png -------------------------------------------------------------------------------- /static/images/darkmode/zhwiki-hans.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnYiEE/nginx-wikimirror/ac4e87defdecbdc20cfc9796c7edc98d10b59457/static/images/darkmode/zhwiki-hans.png -------------------------------------------------------------------------------- /static/images/darkmode/zhwiki.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnYiEE/nginx-wikimirror/ac4e87defdecbdc20cfc9796c7edc98d10b59457/static/images/darkmode/zhwiki.png -------------------------------------------------------------------------------- /static/robots.txt: -------------------------------------------------------------------------------- 1 | User-Agent: * 2 | Disallow: / -------------------------------------------------------------------------------- /static/wikimirror.css: -------------------------------------------------------------------------------- 1 | /** 2 | * WikiMirror - A Wikimedia Projects Reverse Proxy based on Nginx 3 | * 4 | * Copyright (c) 2019-present, 安忆. 5 | * 6 | * @author 安忆 7 | * @file wikimirror.css 8 | * @license GPL v3 9 | * @link 10 | */.WikiMirrorNotice{background:#fff;border:.1rem solid #0645ad;cursor:default;direction:ltr;display:flex;justify-content:center;text-align:center;-webkit-user-select:none;user-select:none}.skin-minerva .WikiMirrorNotice{background:transparent;border:.1rem solid #fff;color:inherit}.WikiMirrorNotice>*:first-child{border-right:.1rem dotted #0645ad;font-size:.8em;font-weight:500;line-height:1.8;margin:0;min-width:calc(100% - 3rem);padding:.4em!important;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;word-break:break-word}.skin-minerva .WikiMirrorNotice>*:first-child{border-right:.1em dotted #fff}.WikiMirrorNotice button{background:#fff;border:0;color:inherit;cursor:pointer;font-family:inherit;font-size:.8em;padding:.4em 0;width:3rem}.WikiMirrorNotice button:active,.WikiMirrorNotice button:focus,.WikiMirrorNotice button:hover{background:#f7f7f7;color:#0645ad}.skin-minerva .WikiMirrorNotice button{background:transparent;color:inherit}.skin-minerva .WikiMirrorNotice button:active,.skin-minerva .WikiMirrorNotice button:focus,.skin-minerva .WikiMirrorNotice button:hover{background:#fff3}.skin-minerva .WikiMirrorTip{border:.1rem solid #0645ad}.WikiMirrorTip>*:first-child{font-size:.7em;border-right:0}.skin-minerva div.mw-highlight{background-color:#f8f8f8}.skin-minerva dl dd{overflow:unset}.skin-minerva ul.mw-contributions-list .comment,.skin-minerva ul.special .comment{word-break:break-word}.skin-minerva .mw-highlight pre{position:unset}.skin-minerva .mw-notification-area{z-index:5}.skin-minerva #footer-places-cookiestatement:after{display:none}.skin-timeless .content-table-left,.skin-timeless .content-table-right{height:auto!important}.skin-timeless .infobox caption,.skin-timeless .wikitable>caption{width:auto!important}.skin-timeless .catlinks-allhidden{display:none!important}.skin-timeless #catlinks-sidebar{display:none}.skin-timeless #catlinks{background:#f8f9fa;border:solid #eaecf0;border-width:1px 1px .2em;box-shadow:0 1px 2px 1px #00000005;display:inherit;font-size:.95em;margin:1em 0 0;padding:1em 2em}.skin-timeless #catlinks div{margin:0 0 .35em}.skin-timeless #catlinks div:last-of-type{margin:0}.skin-timeless #catlinks li{border-left:0}.mw-parser-output a.external,sup.reference{-webkit-user-select:none;user-select:none}.mw-parser-output a.external.free,.mw-parser-output a.external.text{-webkit-user-select:unset;user-select:unset}.oo-ui-windowManager-modal>.oo-ui-dialog{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.minerva-icon--wikimirror-darkmode{background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill%3D%22%2354595d%22%20d%3D%22M5%201a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h10a2%202%200%200%200%202-2V3a2%202%200%200%200-2-2zm0%203h5v1H5zm0%202h5v1H5zm0%202h5v1H5zm10%207H5v-1h10zm0-2H5v-1h10zm0-2H5v-1h10zm0-2h-4V4h4z%22%2F%3E%3C%2Fsvg%3E)}.mw-ui-icon-portletlink-wikimirror-difflink{background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cg%20fill%3D%22%2354595d%22%3E%3Cpath%20d%3D%22M4.83%2015h2.91a4.88%204.88%200%2001-1.55-2H5a3%203%200%20110-6h3a3%203%200%20012.82%204h2.1a4.82%204.82%200%2000.08-.83v-.34A4.83%204.83%200%20008.17%205H4.83A4.83%204.83%200%20000%209.83v.34A4.83%204.83%200%20004.83%2015z%22%2F%3E%3Cpath%20d%3D%22M15.17%205h-2.91a4.88%204.88%200%20011.55%202H15a3%203%200%20110%206h-3a3%203%200%2001-2.82-4h-2.1a4.82%204.82%200%2000-.08.83v.34A4.83%204.83%200%200011.83%2015h3.34A4.83%204.83%200%200020%2010.17v-.34A4.83%204.83%200%200015.17%205z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E)}#frbanner,#frbanner2{display:none!important}#ipe-edit-toolbox{bottom:24px!important;right:68px!important}html{tab-size:4}pre,.mw-code,.mw-highlight,.ve-init-mw-desktopArticleTarget .CodeMirror-code,.ve-init-mw-desktopArticleTarget .CodeMirror-code *,.ve-init-mw-desktopArticleTarget .ve-ui-mwWikitextSurface .ve-ce-paragraphNode{line-break:anywhere!important;white-space:pre-wrap!important;word-break:break-all!important;word-wrap:break-word!important}@media only screen{html.wikimirror-darkmode,.wikimirror-darkmode iframe{filter:invert(.95) hue-rotate(.5turn)}.wikimirror-darkmode,.wikimirror-darkmode canvas:not(.mw-invert),.wikimirror-darkmode img:not(.mw-invert),.wikimirror-darkmode ogvjs,.wikimirror-darkmode svg:not(.mw-invert),.wikimirror-darkmode video,.wikimirror-darkmode .cdx-no-invert,.wikimirror-darkmode .frb-image,.wikimirror-darkmode .image-carousel,.wikimirror-darkmode .k-player.fullscreen,.wikimirror-darkmode .k-player .ttmlStyled,.wikimirror-darkmode .list-thumb:not(.list-thumb-none),.wikimirror-darkmode .mw-mmv-main.jq-fullscreened,.wikimirror-darkmode .mw-no-invert,.wikimirror-darkmode .mw-tmh-play-icon,.wikimirror-darkmode .mwe-upwiz-thumbnail,.wikimirror-darkmode .vjs-fullscreen,.wikimirror-darkmode .vjs-text-track-display,.wikimirror-darkmode #mp-2012-banner-logo{filter:invert(1) hue-rotate(.5turn)}.wikimirror-darkmode .mw-mmv-image img.blurred{filter:blur(3px) invert(1) hue-rotate(.5turn)!important}.wikimirror-darkmode img,.wikimirror-darkmode .minerva-icon,.wikimirror-darkmode .mw-wiki-logo,.wikimirror-darkmode #mp-2012-banner,.wikimirror-darkmode #mp-2012-banner-logo{opacity:.8;transition:opacity .5s ease-in-out}.wikimirror-darkmode img:hover{opacity:1}.wikimirror-darkmode .branding-box img:hover,.wikimirror-darkmode .minerva-footer img:hover,.wikimirror-darkmode .mw-logo-container img:hover,.wikimirror-darkmode .mw-logo-icon:hover,.wikimirror-darkmode .mw-wiki-logo.timeless-logo img:hover,.wikimirror-darkmode #p-banner img:hover,.wikimirror-darkmode #sidebarCollapse:hover{opacity:.8}.wikimirror-darkmode .filehistory img,.wikimirror-darkmode .mw-ext-score img,.wikimirror-darkmode .mw-mmv-image *,.wikimirror-darkmode .mwe-math-element *,.wikimirror-darkmode #file img,.wikimirror-darkmode #gallerypreview img{opacity:1}.wikimirror-darkmode img[alt*=-at-],.wikimirror-darkmode img[alt*="- at -"],.wikimirror-darkmode img[alt*=Lightblue],.wikimirror-darkmode img[alt*="Wikimedia-logo black"],.wikimirror-darkmode img[alt=詩詞賞析],.wikimirror-darkmode img[src*=Blue-bg],.wikimirror-darkmode img[src*=Bluebg],.wikimirror-darkmode img[src*=Black_x],.wikimirror-darkmode img[src*=China_char],.wikimirror-darkmode img[src*=CWLA],.wikimirror-darkmode img[src*=CWMoA],.wikimirror-darkmode img[src*=CWS],.wikimirror-darkmode img[src*=Inkscape_Logo],.wikimirror-darkmode img[src*=Qiuwen],.wikimirror-darkmode img[src*="_Shadow."],.wikimirror-darkmode img[src*="Weiji.svg"],.wikimirror-darkmode img[src*=Wikimedia-logo_black],.wikimirror-darkmode img[src*="Wikipedia%27s_W"],.wikimirror-darkmode img[src*=wikipedia-wordmark],.wikimirror-darkmode img[src*=Wikipedia_wordmark],.wikimirror-darkmode img[src*=Wikipedian_Journal_Title],.wikimirror-darkmode .branding-box img,.wikimirror-darkmode .cdx-icon svg,.wikimirror-darkmode .mainpage_box h3 .header_icon img,.wikimirror-darkmode .minerva-footer img,.wikimirror-darkmode .mw-logo-container img,.wikimirror-darkmode .mw-ext-score img,.wikimirror-darkmode .wd-mp-headerimage,.wikimirror-darkmode .wikipedia-ko.main-box .main-shortcut-item img,.wikimirror-darkmode .wvui-icon svg,.wikimirror-darkmode #mf-wel img,.wikimirror-darkmode #p-banner img,.wikimirror-darkmode #portal img,.wikimirror-darkmode #topics-list img{filter:invert(0)}.wikimirror-darkmode body.skin-timeless,.wikimirror-darkmode .drawer-container__mask,.wikimirror-darkmode .main-menu-mask,.wikimirror-darkmode .mw-mmv-image,.wikimirror-darkmode .mw-tmh-media-dialog .oo-ui-dialog-content>.oo-ui-window-body .oo-ui-layout,.wikimirror-darkmode .overlay.media-viewer,.wikimirror-darkmode .video-js,.wikimirror-darkmode .vjs-poster,.wikimirror-darkmode #menus-cover{background-color:#f7f7f7!important}.wikimirror-darkmode .diff-addedline .diffchange{background:#7fd7c4}.wikimirror-darkmode .diff-deletedline .diffchange{background:#e88e89}.wikimirror-darkmode .mw-kartographer-mapDialog-map{background-color:#000}.wikimirror-darkmode .mwe-popups{border:10px solid #c8ccd1;border-radius:10px;box-shadow:none}.wikimirror-darkmode #mw-footer-container a,.wikimirror-darkmode .skin-modern .mw-editsection *,.wikimirror-darkmode .skin-modern .Wikiplus-Edit-SectionBtn{color:#36c}.wikimirror-darkmode .locmap .pr{color:#fff}.wikimirror-darkmode .skin-minerva .main-menu-mask{background:#0003}.wikimirror-darkmode .skin-timeless h1.firstHeading,.wikimirror-darkmode .skin-timeless .mw-footer-container,.wikimirror-darkmode .skin-timeless #mw-content-container,.wikimirror-darkmode .skin-timeless #mw-header-hack,.wikimirror-darkmode .skin-timeless #mw-header-nav-hack{box-shadow:none}.wikimirror-darkmode .skin-timeless h1.firstHeading,.wikimirror-darkmode .skin-timeless #mw-content-container{border-bottom:solid 4px #c8ccd1}.wikimirror-darkmode .skin-timeless .mw-footer-container{border-top:0}.wikimirror-darkmode .skin-timeless #mw-header-hack .color-left,.wikimirror-darkmode .skin-timeless #mw-header-hack .color-middle,.wikimirror-darkmode .skin-timeless #mw-header-hack .color-right,.wikimirror-darkmode .skin-timeless #mw-header-nav-hack .color-left,.wikimirror-darkmode .skin-timeless #mw-header-nav-hack .color-middle,.wikimirror-darkmode .skin-timeless #mw-header-nav-hack .color-right{background:#c8ccd1}.wikimirror-darkmode #scrollDownButton,.wikimirror-darkmode #scrollDownButton-zhwiki,.wikimirror-darkmode #scrollUpButton,.wikimirror-darkmode #scrollUpButton-zhwiki{transition:unset}.wikimirror-darkmode input:not([type]),.wikimirror-darkmode textarea:not([type]),.wikimirror-darkmode .in-page-edit .CodeMirror{background:#eaecf0!important}.wikimirror-darkmode input:not([type]),.wikimirror-darkmode textarea:not([type]),.wikimirror-darkmode .mw-mmv-image .error-box,.wikimirror-darkmode .skin-minerva .search-box .search,.wikimirror-darkmode .skin-timeless .mw-footer-container,.wikimirror-darkmode .skin-timeless #searchInput,.wikimirror-darkmode .in-page-edit .CodeMirror{color:#000!important}.wikimirror-darkmode .swagger-ui .topbar{background-color:#e3e3e3}.wikimirror-darkmode .site-footer#colophon{filter:invert(1) hue-rotate(.5turn)}.wikimirror-darkmode body.ui-gray .navbar-gitlab{background-color:#fff}.wikimirror-darkmode .phui-comment-image,.wikimirror-darkmode .phui-curtain-object-ref-view-image-cell,.wikimirror-darkmode .phui-icon-view,.wikimirror-darkmode .phui-oi-image,.wikimirror-darkmode .phui-timeline-image,.wikimirror-darkmode .phabricator-main-menu-eye,.wikimirror-darkmode .phabricator-wordmark{filter:invert(1) hue-rotate(.5turn)}.wikimirror-darkmode .phui-theme-blue .phabricator-main-menu-background{background:#fff}.wikimirror-darkmode body[id*=www] [data-el-section="other projects"] .app-badges .sprite,.wikimirror-darkmode body[id*=www] [data-el-section="other projects"] .other-project-icon{filter:invert(1) hue-rotate(.5turn)}.wikimirror-darkmode body[id*=www] [data-jsl10n="portal.slogan"]{color:#000}.wikimirror-darkmode #eventstreams-ui-app .nav-bar{background-color:#fff}.wikimirror-darkmode #eventstreams-ui-app .nav-bar a{color:#000!important}}@media only screen and (max-width: 550px){.skin-monobook #echo-hack-badges,.skin-monobook #globalWrapper-toggle{display:none}}@media only screen and (max-width: 850px){.skin-timeless .diff{width:100%!important}.skin-timeless .mw-body table{width:auto;word-break:break-all}.skin-timeless .mw-body table table{width:100%}}@media only screen and (min-width: 1340px){.skin-timeless #site-tools{position:-webkit-sticky;position:sticky;top:4.475em}}@media print{.noprint{display:none!important}} 11 | /*# sourceMappingURL=wikimirror.css.map */ 12 | -------------------------------------------------------------------------------- /static/wikimirror.css.map: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "sources": ["../../src/public/wikimirror.css"], 4 | "sourcesContent": ["/**\r\n * WikiMirror - A Wikimedia Projects Reverse Proxy based on Nginx\r\n *\r\n * Copyright (c) 2019-present, 安忆.\r\n *\r\n * @author 安忆 \r\n * @file wikimirror.css\r\n * @license GPL v3\r\n * @link \r\n */\r\n.WikiMirrorNotice {\r\n\tbackground: #fff;\r\n\tborder: 0.1rem solid #0645ad;\r\n\tcursor: default;\r\n\tdirection: ltr;\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n\ttext-align: center;\r\n\t-webkit-user-select: none;\r\n\t user-select: none;\r\n}\r\n\r\n.skin-minerva .WikiMirrorNotice {\r\n\tbackground: transparent;\r\n\tborder: 0.1rem solid #fff;\r\n\tcolor: inherit;\r\n}\r\n\r\n.WikiMirrorNotice > *:first-child {\r\n\tborder-right: 0.1rem dotted #0645ad;\r\n\tfont-size: 0.8em;\r\n\tfont-weight: 500;\r\n\tline-height: 1.8;\r\n\tmargin: 0;\r\n\tmin-width: calc(100% - 3rem);\r\n\tpadding: 0.4em !important;\r\n\twidth: -webkit-fit-content;\r\n\twidth: -moz-fit-content;\r\n\twidth: fit-content;\r\n\tword-break: break-word;\r\n}\r\n\r\n.skin-minerva .WikiMirrorNotice > *:first-child {\r\n\tborder-right: 0.1em dotted #fff;\r\n}\r\n\r\n.WikiMirrorNotice button {\r\n\tbackground: #fff;\r\n\tborder: 0;\r\n\tcolor: inherit;\r\n\tcursor: pointer;\r\n\tfont-family: inherit;\r\n\tfont-size: 0.8em;\r\n\tpadding: 0.4em 0;\r\n\twidth: 3rem;\r\n}\r\n\r\n.WikiMirrorNotice button:active,\r\n.WikiMirrorNotice button:focus,\r\n.WikiMirrorNotice button:hover {\r\n\tbackground: #f7f7f7;\r\n\tcolor: #0645ad;\r\n}\r\n\r\n.skin-minerva .WikiMirrorNotice button {\r\n\tbackground: transparent;\r\n\tcolor: inherit;\r\n}\r\n\r\n.skin-minerva .WikiMirrorNotice button:active,\r\n.skin-minerva .WikiMirrorNotice button:focus,\r\n.skin-minerva .WikiMirrorNotice button:hover {\r\n\tbackground: rgba(255, 255, 255, 0.2);\r\n}\r\n\r\n.skin-minerva .WikiMirrorTip {\r\n\tborder: 0.1rem solid #0645ad;\r\n}\r\n\r\n.WikiMirrorTip > *:first-child {\r\n\tfont-size: 0.7em;\r\n\tborder-right: 0;\r\n}\r\n\r\n.skin-minerva div.mw-highlight {\r\n\tbackground-color: #f8f8f8;\r\n}\r\n\r\n.skin-minerva dl dd {\r\n\toverflow: unset;\r\n}\r\n\r\n.skin-minerva ul.mw-contributions-list .comment,\r\n.skin-minerva ul.special .comment {\r\n\tword-break: break-word;\r\n}\r\n\r\n.skin-minerva .mw-highlight pre {\r\n\tposition: unset;\r\n}\r\n\r\n.skin-minerva .mw-notification-area {\r\n\tz-index: 5;\r\n}\r\n\r\n.skin-minerva #footer-places-cookiestatement::after {\r\n\tdisplay: none;\r\n}\r\n\r\n.skin-timeless .content-table-left,\r\n.skin-timeless .content-table-right {\r\n\theight: auto !important;\r\n}\r\n\r\n.skin-timeless .infobox caption,\r\n.skin-timeless .wikitable > caption {\r\n\twidth: auto !important;\r\n}\r\n\r\n.skin-timeless .catlinks-allhidden {\r\n\tdisplay: none !important;\r\n}\r\n\r\n.skin-timeless #catlinks-sidebar {\r\n\tdisplay: none;\r\n}\r\n\r\n.skin-timeless #catlinks {\r\n\tbackground: #f8f9fa;\r\n\tborder: solid #eaecf0;\r\n\tborder-width: 1px 1px 0.2em;\r\n\tbox-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.02);\r\n\tdisplay: inherit;\r\n\tfont-size: 0.95em;\r\n\tmargin: 1em 0 0;\r\n\tpadding: 1em 2em;\r\n}\r\n\r\n.skin-timeless #catlinks div {\r\n\tmargin: 0 0 0.35em;\r\n}\r\n\r\n.skin-timeless #catlinks div:last-of-type {\r\n\tmargin: 0;\r\n}\r\n\r\n.skin-timeless #catlinks li {\r\n\tborder-left: 0;\r\n}\r\n\r\n.mw-parser-output a.external,\r\nsup.reference {\r\n\t-webkit-user-select: none;\r\n\t user-select: none;\r\n}\r\n\r\n.mw-parser-output a.external.free,\r\n.mw-parser-output a.external.text {\r\n\t-webkit-user-select: unset;\r\n\t user-select: unset;\r\n}\r\n\r\n.oo-ui-windowManager-modal > .oo-ui-dialog {\r\n\t-webkit-backdrop-filter: blur(5px);\r\n\t backdrop-filter: blur(5px);\r\n}\r\n\r\n.minerva-icon--wikimirror-darkmode {\r\n\tbackground-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill%3D%22%2354595d%22%20d%3D%22M5%201a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h10a2%202%200%200%200%202-2V3a2%202%200%200%200-2-2zm0%203h5v1H5zm0%202h5v1H5zm0%202h5v1H5zm10%207H5v-1h10zm0-2H5v-1h10zm0-2H5v-1h10zm0-2h-4V4h4z%22%2F%3E%3C%2Fsvg%3E');\r\n}\r\n\r\n.mw-ui-icon-portletlink-wikimirror-difflink {\r\n\tbackground-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cg%20fill%3D%22%2354595d%22%3E%3Cpath%20d%3D%22M4.83%2015h2.91a4.88%204.88%200%2001-1.55-2H5a3%203%200%20110-6h3a3%203%200%20012.82%204h2.1a4.82%204.82%200%2000.08-.83v-.34A4.83%204.83%200%20008.17%205H4.83A4.83%204.83%200%20000%209.83v.34A4.83%204.83%200%20004.83%2015z%22%2F%3E%3Cpath%20d%3D%22M15.17%205h-2.91a4.88%204.88%200%20011.55%202H15a3%203%200%20110%206h-3a3%203%200%2001-2.82-4h-2.1a4.82%204.82%200%2000-.08.83v.34A4.83%204.83%200%200011.83%2015h3.34A4.83%204.83%200%200020%2010.17v-.34A4.83%204.83%200%200015.17%205z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E');\r\n}\r\n\r\n#frbanner,\r\n#frbanner2 {\r\n\tdisplay: none !important;\r\n}\r\n\r\n#ipe-edit-toolbox {\r\n\tbottom: 24px !important;\r\n\tright: 68px !important;\r\n}\r\n\r\nhtml {\r\n\ttab-size: 4;\r\n}\r\n\r\npre,\r\n.mw-code,\r\n.mw-highlight,\r\n.ve-init-mw-desktopArticleTarget .CodeMirror-code,\r\n.ve-init-mw-desktopArticleTarget .CodeMirror-code *,\r\n.ve-init-mw-desktopArticleTarget .ve-ui-mwWikitextSurface .ve-ce-paragraphNode {\r\n\tline-break: anywhere !important;\r\n\twhite-space: pre-wrap !important;\r\n\tword-break: break-all !important;\r\n\tword-wrap: break-word !important;\r\n}\r\n\r\n@media only screen {\r\n\thtml.wikimirror-darkmode,\r\n\t.wikimirror-darkmode iframe {\r\n\t\tfilter: invert(0.95) hue-rotate(0.5turn);\r\n\t}\r\n\t.wikimirror-darkmode,\r\n\t.wikimirror-darkmode canvas:not(.mw-invert),\r\n\t.wikimirror-darkmode img:not(.mw-invert),\r\n\t.wikimirror-darkmode ogvjs,\r\n\t.wikimirror-darkmode svg:not(.mw-invert),\r\n\t.wikimirror-darkmode video,\r\n\t.wikimirror-darkmode .cdx-no-invert,\r\n\t.wikimirror-darkmode .frb-image,\r\n\t.wikimirror-darkmode .image-carousel,\r\n\t.wikimirror-darkmode .k-player.fullscreen,\r\n\t.wikimirror-darkmode .k-player .ttmlStyled,\r\n\t.wikimirror-darkmode .list-thumb:not(.list-thumb-none),\r\n\t.wikimirror-darkmode .mw-mmv-main.jq-fullscreened,\r\n\t.wikimirror-darkmode .mw-no-invert,\r\n\t.wikimirror-darkmode .mw-tmh-play-icon,\r\n\t.wikimirror-darkmode .mwe-upwiz-thumbnail,\r\n\t.wikimirror-darkmode .vjs-fullscreen,\r\n\t.wikimirror-darkmode .vjs-text-track-display,\r\n\t.wikimirror-darkmode #mp-2012-banner-logo {\r\n\t\tfilter: invert(1) hue-rotate(0.5turn);\r\n\t}\r\n\t.wikimirror-darkmode .mw-mmv-image img.blurred {\r\n\t\tfilter: blur(3px) invert(1) hue-rotate(0.5turn) !important;\r\n\t}\r\n\t.wikimirror-darkmode img,\r\n\t.wikimirror-darkmode .minerva-icon,\r\n\t.wikimirror-darkmode .mw-wiki-logo,\r\n\t.wikimirror-darkmode #mp-2012-banner,\r\n\t.wikimirror-darkmode #mp-2012-banner-logo {\r\n\t\topacity: 0.8;\r\n\t\ttransition: opacity 0.5s ease-in-out;\r\n\t}\r\n\t.wikimirror-darkmode img:hover {\r\n\t\topacity: 1;\r\n\t}\r\n\t.wikimirror-darkmode .branding-box img:hover,\r\n\t.wikimirror-darkmode .minerva-footer img:hover,\r\n\t.wikimirror-darkmode .mw-logo-container img:hover,\r\n\t.wikimirror-darkmode .mw-logo-icon:hover,\r\n\t.wikimirror-darkmode .mw-wiki-logo.timeless-logo img:hover,\r\n\t.wikimirror-darkmode #p-banner img:hover,\r\n\t.wikimirror-darkmode #sidebarCollapse:hover {\r\n\t\topacity: 0.8;\r\n\t}\r\n\t.wikimirror-darkmode .filehistory img,\r\n\t.wikimirror-darkmode .mw-ext-score img,\r\n\t.wikimirror-darkmode .mw-mmv-image *,\r\n\t.wikimirror-darkmode .mwe-math-element *,\r\n\t.wikimirror-darkmode #file img,\r\n\t.wikimirror-darkmode #gallerypreview img {\r\n\t\topacity: 1;\r\n\t}\r\n\t.wikimirror-darkmode img[alt*='-at-'],\r\n\t.wikimirror-darkmode img[alt*='- at -'],\r\n\t.wikimirror-darkmode img[alt*='Lightblue'],\r\n\t.wikimirror-darkmode img[alt*='Wikimedia-logo black'],\r\n\t.wikimirror-darkmode img[alt='詩詞賞析'],\r\n\t.wikimirror-darkmode img[src*='Blue-bg'],\r\n\t.wikimirror-darkmode img[src*='Bluebg'],\r\n\t.wikimirror-darkmode img[src*='Black_x'],\r\n\t.wikimirror-darkmode img[src*='China_char'],\r\n\t.wikimirror-darkmode img[src*='CWLA'],\r\n\t.wikimirror-darkmode img[src*='CWMoA'],\r\n\t.wikimirror-darkmode img[src*='CWS'],\r\n\t.wikimirror-darkmode img[src*='Inkscape_Logo'],\r\n\t.wikimirror-darkmode img[src*='Qiuwen'],\r\n\t.wikimirror-darkmode img[src*='_Shadow.'],\r\n\t.wikimirror-darkmode img[src*='Weiji.svg'],\r\n\t.wikimirror-darkmode img[src*='Wikimedia-logo_black'],\r\n\t.wikimirror-darkmode img[src*='Wikipedia%27s_W'],\r\n\t.wikimirror-darkmode img[src*='wikipedia-wordmark'],\r\n\t.wikimirror-darkmode img[src*='Wikipedia_wordmark'],\r\n\t.wikimirror-darkmode img[src*='Wikipedian_Journal_Title'],\r\n\t.wikimirror-darkmode .branding-box img,\r\n\t.wikimirror-darkmode .cdx-icon svg,\r\n\t.wikimirror-darkmode .mainpage_box h3 .header_icon img,\r\n\t.wikimirror-darkmode .minerva-footer img,\r\n\t.wikimirror-darkmode .mw-logo-container img,\r\n\t.wikimirror-darkmode .mw-ext-score img,\r\n\t.wikimirror-darkmode .wd-mp-headerimage,\r\n\t.wikimirror-darkmode .wikipedia-ko.main-box .main-shortcut-item img,\r\n\t.wikimirror-darkmode .wvui-icon svg,\r\n\t.wikimirror-darkmode #mf-wel img,\r\n\t.wikimirror-darkmode #p-banner img,\r\n\t.wikimirror-darkmode #portal img,\r\n\t.wikimirror-darkmode #topics-list img {\r\n\t\tfilter: invert(0);\r\n\t}\r\n\t.wikimirror-darkmode body.skin-timeless,\r\n\t.wikimirror-darkmode .drawer-container__mask,\r\n\t.wikimirror-darkmode .main-menu-mask,\r\n\t.wikimirror-darkmode .mw-mmv-image,\r\n\t.wikimirror-darkmode .mw-tmh-media-dialog .oo-ui-dialog-content > .oo-ui-window-body .oo-ui-layout,\r\n\t.wikimirror-darkmode .overlay.media-viewer,\r\n\t.wikimirror-darkmode .video-js,\r\n\t.wikimirror-darkmode .vjs-poster,\r\n\t.wikimirror-darkmode #menus-cover {\r\n\t\tbackground-color: #f7f7f7 !important;\r\n\t}\r\n\t.wikimirror-darkmode .diff-addedline .diffchange {\r\n\t\tbackground: #7fd7c4;\r\n\t}\r\n\t.wikimirror-darkmode .diff-deletedline .diffchange {\r\n\t\tbackground: #e88e89;\r\n\t}\r\n\t.wikimirror-darkmode .mw-kartographer-mapDialog-map {\r\n\t\tbackground-color: #000;\r\n\t}\r\n\t.wikimirror-darkmode .mwe-popups {\r\n\t\tborder: 10px solid #c8ccd1;\r\n\t\tborder-radius: 10px;\r\n\t\tbox-shadow: none;\r\n\t}\r\n\t.wikimirror-darkmode #mw-footer-container a,\r\n\t.wikimirror-darkmode .skin-modern .mw-editsection *,\r\n\t.wikimirror-darkmode .skin-modern .Wikiplus-Edit-SectionBtn {\r\n\t\tcolor: #36c;\r\n\t}\r\n\t.wikimirror-darkmode .locmap .pr {\r\n\t\tcolor: #fff;\r\n\t}\r\n\t.wikimirror-darkmode .skin-minerva .main-menu-mask {\r\n\t\tbackground: rgba(0, 0, 0, 0.2);\r\n\t}\r\n\t.wikimirror-darkmode .skin-timeless h1.firstHeading,\r\n\t.wikimirror-darkmode .skin-timeless .mw-footer-container,\r\n\t.wikimirror-darkmode .skin-timeless #mw-content-container,\r\n\t.wikimirror-darkmode .skin-timeless #mw-header-hack,\r\n\t.wikimirror-darkmode .skin-timeless #mw-header-nav-hack {\r\n\t\tbox-shadow: none;\r\n\t}\r\n\t.wikimirror-darkmode .skin-timeless h1.firstHeading,\r\n\t.wikimirror-darkmode .skin-timeless #mw-content-container {\r\n\t\tborder-bottom: solid 4px #c8ccd1;\r\n\t}\r\n\t.wikimirror-darkmode .skin-timeless .mw-footer-container {\r\n\t\tborder-top: 0;\r\n\t}\r\n\t.wikimirror-darkmode .skin-timeless #mw-header-hack .color-left,\r\n\t.wikimirror-darkmode .skin-timeless #mw-header-hack .color-middle,\r\n\t.wikimirror-darkmode .skin-timeless #mw-header-hack .color-right,\r\n\t.wikimirror-darkmode .skin-timeless #mw-header-nav-hack .color-left,\r\n\t.wikimirror-darkmode .skin-timeless #mw-header-nav-hack .color-middle,\r\n\t.wikimirror-darkmode .skin-timeless #mw-header-nav-hack .color-right {\r\n\t\tbackground: #c8ccd1;\r\n\t}\r\n\t.wikimirror-darkmode #scrollDownButton,\r\n\t.wikimirror-darkmode #scrollDownButton-zhwiki,\r\n\t.wikimirror-darkmode #scrollUpButton,\r\n\t.wikimirror-darkmode #scrollUpButton-zhwiki {\r\n\t\ttransition: unset;\r\n\t}\r\n\t.wikimirror-darkmode input:not([type]),\r\n\t.wikimirror-darkmode textarea:not([type]),\r\n\t.wikimirror-darkmode .in-page-edit .CodeMirror {\r\n\t\tbackground: #eaecf0 !important;\r\n\t}\r\n\t.wikimirror-darkmode input:not([type]),\r\n\t.wikimirror-darkmode textarea:not([type]),\r\n\t.wikimirror-darkmode .mw-mmv-image .error-box,\r\n\t.wikimirror-darkmode .skin-minerva .search-box .search,\r\n\t.wikimirror-darkmode .skin-timeless .mw-footer-container,\r\n\t.wikimirror-darkmode .skin-timeless #searchInput,\r\n\t.wikimirror-darkmode .in-page-edit .CodeMirror {\r\n\t\tcolor: #000 !important;\r\n\t}\r\n\t/* cxserver */\r\n\t.wikimirror-darkmode .swagger-ui .topbar {\r\n\t\tbackground-color: #e3e3e3;\r\n\t}\r\n\t/* diff */\r\n\t.wikimirror-darkmode .site-footer#colophon {\r\n\t\tfilter: invert(1) hue-rotate(0.5turn);\r\n\t}\r\n\t/* gitlab */\r\n\t.wikimirror-darkmode body.ui-gray .navbar-gitlab {\r\n\t\tbackground-color: #fff;\r\n\t}\r\n\t/* phabricator */\r\n\t.wikimirror-darkmode .phui-comment-image,\r\n\t.wikimirror-darkmode .phui-curtain-object-ref-view-image-cell,\r\n\t.wikimirror-darkmode .phui-icon-view,\r\n\t.wikimirror-darkmode .phui-oi-image,\r\n\t.wikimirror-darkmode .phui-timeline-image,\r\n\t.wikimirror-darkmode .phabricator-main-menu-eye,\r\n\t.wikimirror-darkmode .phabricator-wordmark {\r\n\t\tfilter: invert(1) hue-rotate(0.5turn);\r\n\t}\r\n\t.wikimirror-darkmode .phui-theme-blue .phabricator-main-menu-background {\r\n\t\tbackground: #fff;\r\n\t}\r\n\t/* project portal */\r\n\t.wikimirror-darkmode body[id*='www'] [data-el-section='other projects'] .app-badges .sprite,\r\n\t.wikimirror-darkmode body[id*='www'] [data-el-section='other projects'] .other-project-icon {\r\n\t\tfilter: invert(1) hue-rotate(0.5turn);\r\n\t}\r\n\t.wikimirror-darkmode body[id*='www'] [data-jsl10n='portal.slogan'] {\r\n\t\tcolor: #000;\r\n\t}\r\n\t/* stream */\r\n\t.wikimirror-darkmode #eventstreams-ui-app .nav-bar {\r\n\t\tbackground-color: #fff;\r\n\t}\r\n\t.wikimirror-darkmode #eventstreams-ui-app .nav-bar a {\r\n\t\tcolor: #000 !important;\r\n\t}\r\n}\r\n\r\n@media only screen and (max-width: 550px) {\r\n\t.skin-monobook #echo-hack-badges,\r\n\t.skin-monobook #globalWrapper-toggle {\r\n\t\tdisplay: none;\r\n\t}\r\n}\r\n\r\n@media only screen and (max-width: 850px) {\r\n\t.skin-timeless .diff {\r\n\t\twidth: 100% !important;\r\n\t}\r\n\t.skin-timeless .mw-body table {\r\n\t\twidth: auto;\r\n\t\tword-break: break-all;\r\n\t}\r\n\t.skin-timeless .mw-body table table {\r\n\t\twidth: 100%;\r\n\t}\r\n}\r\n\r\n@media only screen and (min-width: 1340px) {\r\n\t.skin-timeless #site-tools {\r\n\t\tposition: -webkit-sticky;\r\n\t\tposition: sticky;\r\n\t\ttop: 4.475em;\r\n\t}\r\n}\r\n\r\n@media print {\r\n\t.noprint {\r\n\t\tdisplay: none !important;\r\n\t}\r\n}\r\n"], 5 | "mappings": "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", 6 | "names": [] 7 | } 8 | -------------------------------------------------------------------------------- /wikimirror.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnYiEE/nginx-wikimirror/ac4e87defdecbdc20cfc9796c7edc98d10b59457/wikimirror.png --------------------------------------------------------------------------------