Skip to content
This repository has been archived by the owner on Feb 28, 2019. It is now read-only.

Commit

Permalink
[+] 海盗湾镜像(thepiratebay.org)
Browse files Browse the repository at this point in the history
  • Loading branch information
aploium committed Sep 22, 2016
1 parent 9446319 commit ae7bf11
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -81,6 +81,7 @@ Together with the program, provided several (almost) out-of-box configs
* Dropbox镜像
* Tumblr镜像
* Economist(经济学人)镜像
* thepiratebay(海盗湾)镜像
* For more information, please see [more_configs/readme.md](more_configs/readme.md)


Expand Down
47 changes: 47 additions & 0 deletions more_configs/config_thepiratebay.py
@@ -0,0 +1,47 @@
# coding=utf-8
# 这是 thepiratebay.org(海盗湾) 的配置文件
#
# 使用方法:
# 1. 复制本文件到 zmirror 根目录(wsgi.py所在目录), 并重命名为 config.py
# 2. 修改 my_host_name 为你自己的域名
#
# 各项设置选项的详细介绍请看 config_default.py 中对应的部分
# 本配置文件假定你的服务器本身在墙外
# 如果服务器本身在墙内(或者在本地环境下测试, 请修改`Proxy Settings`中的设置
#
# 由于注册过程中有 google captcha 出现, zmirror暂时还无法兼容captcha, 所以无法注册
# 但是其他功能基本完整(包括登录以后的功能)

# Github: https://github.com/aploium/zmirror

# ############## Local Domain Settings ##############
my_host_name = '127.0.0.1'
my_host_scheme = 'http://'
my_host_port = None # None表示使用默认端口, 可以设置成非标准端口, 比如 81

# ############## Target Domain Settings ##############
target_domain = 'thepiratebay.org'
target_scheme = 'https://'

# 这里面大部分域名都是通过 `enable_automatic_domains_whitelist` 自动采集的, 我只是把它们复制黏贴到了这里
# 实际镜像一个新的站时, 手动只需要添加很少的几个域名就可以了.
# 自动采集(如果开启的话)会不断告诉你新域名
external_domains = [
"www.thepiratebay.org",
]

# 强制所有站点使用HTTPS
force_https_domains = 'ALL'

# 自动动态添加域名
enable_automatic_domains_whitelist = True
domains_whitelist_auto_add_glob_list = ('*.thepiratebay.org', )

# ############## Proxy Settings ##############
# 如果你在墙内使用本配置文件, 请指定一个墙外的http代理
is_use_proxy = False
# 代理的格式及SOCKS代理, 请看 http://docs.python-requests.org/en/latest/user/advanced/#proxies
requests_proxies = dict(
http='http://127.0.0.1:8123',
https='https://127.0.0.1:8123',
)
4 changes: 4 additions & 0 deletions more_configs/readme.md
Expand Up @@ -62,3 +62,7 @@ python3 wsgi.py
经济学人镜像
有一些地方比较鬼畜, 有时候会卡住, 但是绝大部分能用
![zmirror economist 经济学人镜像 截图](https://raw.githubusercontent.com/aploium/zmirror/wiki-pages/img/Economist.jpg)
#### thepiratebay(海盗湾)镜像
海盗湾镜像
全功能完整
btw: 海盗湾居然只有一个域名, 真是太方便了

0 comments on commit ae7bf11

Please sign in to comment.