forked from achaorg/PyOne_Mongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
self_config.py.sample
124 lines (97 loc) · 2.22 KB
/
self_config.py.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#-*- coding=utf-8 -*-
import os
#限制调用域名
allow_site=[u'no-referrer']
#######源码目录
config_dir="/root/PyOne"
data_dir=os.path.join(config_dir,'data')
#下载链接过期时间
downloadUrl_timeout="300"
#后台密码设置
password="PyOne"
#网站名称
title="PyOne"
#自定义代码
tj_code=""""""
headCode=""""""
footCode=""""""
cssCode=""""""
robots="""
User-agent: *
Disallow: /
"""
#主题设置
theme="material"
#网站标题前缀
title_pre="index of "
#onedrive api设置
redirect_uri="https://pyoneauth.github.io/" #不要修改!
BaseAuthUrl='https://login.microsoftonline.com'
app_url=u'https://graph.microsoft.com/'
#aria2配置
ARIA2_HOST="localhost"
ARIA2_PORT=6800
ARIA2_SECRET=""
ARIA2_SCHEME="http"
#MongoDB
MONGO_HOST="localhost"
MONGO_PORT="27017"
MONGO_USER=""
MONGO_PASSWORD=""
MONGO_DB="three"
#Redis
REDIS_HOST="localhost"
REDIS_PORT="6379"
REDIS_PASSWORD=""
REDIS_DB="0"
#搜索模式
show_secret="no"
#文件默认排序字段
default_sort="lastModtime"
order_m="desc"
#文件是否支持加密--no-文件夹加密的情况下,如果直接访问该文件夹下的文件链接,则会跳过密码
encrypt_file="no"
#默认盘位
default_pan="A"
#后台路径
admin_prefix="admin"
#是否做负载均衡
balance="False"
#多线程最大线程
thread_num="5"
#是否开启下载链接验证
verify_url="True"
od_users={
"A":{
"client_id":"",
"client_secret":"",
"share_path":"/",
"other_name":"网盘1区",
"order":1
},
"B":{
"client_id":"",
"client_secret":"",
"share_path":"/",
"other_name":"网盘2区",
"order":2
},
"C":{
"client_id":"",
"client_secret":"",
"share_path":"/",
"other_name":"网盘3区",
"order":3
}
}
show_doc="csv,doc,docx,odp,ods,odt,pot,potm,potx,pps,ppsx,ppsxm,ppt,pptm,pptx,rtf,xls,xlsx"
show_image="bmp,jpg,jpeg,png,gif"
show_video="mp4,webm"
show_dash="avi,mpg,mpeg,rm,rmvb,mov,wmv,mkv,asf"
show_audio="ogg,mp3,wav,aac,flac,m4a"
show_code="html,htm,php,py,css,go,java,js,json,txt,sh,md"
show_redirect="exe"
#上传服务器文件完成之后是否删除文件
delete_after_upload="True"
#是否转发流量
redirect_file="False"