mirror of https://github.com/IoTcat/PyOne.git
parent
f722767811
commit
09fc68e228
38 changed files with 619 additions and 298 deletions
@ -0,0 +1,50 @@ |
||||
#-*- coding=utf-8 -*- |
||||
import os |
||||
|
||||
#限制调用域名 |
||||
allow_site=[u'no-referrer'] |
||||
|
||||
#######源码目录 |
||||
config_dir="/home/centos/PyOne" |
||||
data_dir=os.path.join(config_dir,'data') |
||||
|
||||
#下载链接过期时间 |
||||
downloadUrl_timeout="300" |
||||
|
||||
#后台密码设置 |
||||
password="pyone210210" |
||||
|
||||
#网站名称 |
||||
title="资源整合" |
||||
|
||||
tj_code="""<script src="https://s19.cnzz.com/z_stat.php?id=1274508765&web_id=1274508765" language="JavaScript"></script>""" |
||||
|
||||
#onedrive api设置 |
||||
redirect_uri='https://auth.3pp.me/' #不要修改! |
||||
BaseAuthUrl='https://login.microsoftonline.com' |
||||
app_url=u'https://graph.microsoft.com/' |
||||
|
||||
od_users={ |
||||
"A":{ |
||||
"client_id":"d7d69676-b925-4714-a9bd-2200e3972179", |
||||
"client_secret":"cpmRN8154|-jfmmNMMVI3*:", |
||||
"share_path":"/日剧", |
||||
"other_name":"日日香", |
||||
"order":1 |
||||
}, |
||||
"B":{ |
||||
"client_id":"32489f67-d11d-4dc9-9352-ed7e95916d6c", |
||||
"client_secret":"sakUNW#iiyxQLDM01186={=", |
||||
"share_path":"/", |
||||
"other_name":"网盘2区", |
||||
"order":2 |
||||
}, |
||||
"C":{ |
||||
"client_id":"", |
||||
"client_secret":"", |
||||
"share_path":"/", |
||||
"other_name":"网盘3区", |
||||
"order":3 |
||||
} |
||||
} |
||||
|
@ -1 +1,121 @@ |
||||
body{background-color:#f2f5fa;padding-bottom:60px;background-image:url(../img/bg-bottom.svg);background-position:50% 100%;background-repeat:no-repeat;background-attachment:fixed}.nexmoe-item{margin:20px -8px 0!important;padding:15px!important;border-radius:5px;background-color:#fff;-webkit-box-shadow:0 .5em 3em rgba(161,177,204,.4);box-shadow:0 .5em 3em rgba(161,177,204,.4);background-color:#fff}.mdui-img-fluid,.mdui-video-fluid{border-radius:5px;border:1px solid #eee}.mdui-list{padding:0}.mdui-list-item{margin:0!important;border-radius:5px;padding:0 10px 0 5px!important;border:1px solid #eee;margin-bottom:10px!important}.mdui-list-item:last-child{margin-bottom:0!important}.mdui-list-item:first-child{border:none}.mdui-toolbar{width:auto;margin-top:60px!important}.mdui-appbar .mdui-toolbar{height:56px;font-size:16px}.mdui-toolbar>*{padding:0 6px;margin:0 2px;opacity:.5}.mdui-toolbar>.mdui-typo-headline{padding:0 16px 0 0}.mdui-toolbar>i{padding:0}.mdui-toolbar>a:hover,a.mdui-typo-headline,a.active{opacity:1}.mdui-container{max-width:980px}.mdui-list>.th{background-color:initial}.mdui-list-item>a{width:100%;line-height:48px}.mdui-toolbar>a{padding:0 16px;line-height:30px;border-radius:30px;border:1px solid #eee}.mdui-toolbar>a:last-child{opacity:1;background-color:#1e89f2;color:#ffff}@media screen and (max-width:980px){.mdui-list-item .mdui-text-right{display:none}.mdui-container{width:100%!important;margin:0}.mdui-toolbar>*{display:none}.mdui-toolbar>a:last-child,.mdui-toolbar>.mdui-typo-headline,.mdui-toolbar>i:first-child{display:block}} |
||||
body { |
||||
background-color: #f2f5fa; |
||||
padding-bottom: 60px; |
||||
background-image: url(../img/bg-bottom.svg); |
||||
background-position: 50% 100%; |
||||
background-repeat: no-repeat; |
||||
background-attachment: fixed |
||||
} |
||||
|
||||
.nexmoe-item { |
||||
/*margin: 20px -8px 0 !important;*/ |
||||
padding: 15px !important; |
||||
border-radius: 5px; |
||||
background-color: #fff; |
||||
-webkit-box-shadow: 0 .5em 3em rgba(161, 177, 204, .4); |
||||
box-shadow: 0 .5em 3em rgba(161, 177, 204, .4); |
||||
background-color: #fff |
||||
} |
||||
|
||||
.mdui-img-fluid, |
||||
.mdui-video-fluid { |
||||
border-radius: 5px; |
||||
border: 1px solid #eee |
||||
} |
||||
|
||||
.mdui-list { |
||||
padding: 0 |
||||
} |
||||
|
||||
.mdui-list-item { |
||||
margin: 0 !important; |
||||
border-radius: 5px; |
||||
padding: 0 10px 0 5px !important; |
||||
border: 1px solid #eee; |
||||
margin-bottom: 10px !important |
||||
} |
||||
|
||||
.mdui-list-item:last-child { |
||||
margin-bottom: 0 !important |
||||
} |
||||
|
||||
.mdui-list-item:first-child { |
||||
border: none |
||||
} |
||||
|
||||
.mdui-toolbar { |
||||
width: auto; |
||||
/*margin-top: 60px !important*/ |
||||
} |
||||
|
||||
.mdui-appbar .mdui-toolbar { |
||||
height: 56px; |
||||
font-size: 16px |
||||
} |
||||
|
||||
.mdui-toolbar>* { |
||||
padding: 0 6px; |
||||
margin: 0 2px; |
||||
opacity: .5 |
||||
} |
||||
|
||||
.mdui-toolbar>.mdui-typo-headline { |
||||
padding: 0 16px 0 0 |
||||
} |
||||
|
||||
.mdui-toolbar>i { |
||||
padding: 0 |
||||
} |
||||
|
||||
.mdui-toolbar>a:hover, |
||||
a.mdui-typo-headline, |
||||
a.active { |
||||
opacity: 1 |
||||
} |
||||
|
||||
.mdui-container { |
||||
max-width: 980px |
||||
} |
||||
|
||||
.mdui-list>.th { |
||||
background-color: initial |
||||
} |
||||
|
||||
.mdui-list-item>a { |
||||
width: 100%; |
||||
line-height: 48px |
||||
} |
||||
|
||||
.mdui-toolbar>a { |
||||
padding: 0 16px; |
||||
line-height: 30px; |
||||
border-radius: 30px; |
||||
border: 1px solid #eee |
||||
} |
||||
|
||||
.mdui-toolbar>a:last-child { |
||||
opacity: 1; |
||||
background-color: #1e89f2; |
||||
color: #ffff |
||||
} |
||||
|
||||
@media screen and (max-width:980px) { |
||||
.mdui-list-item .mdui-text-right { |
||||
display: none |
||||
} |
||||
|
||||
.mdui-container { |
||||
width: 100% !important; |
||||
margin: 0 |
||||
} |
||||
|
||||
.mdui-toolbar>* { |
||||
display: none |
||||
} |
||||
|
||||
.mdui-toolbar>a:last-child, |
||||
.mdui-toolbar>.mdui-typo-headline, |
||||
.mdui-toolbar>i:first-child { |
||||
display: block |
||||
} |
||||
} |
||||
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
@ -0,0 +1,34 @@ |
||||
[unix_http_server] |
||||
file=/tmp/supervisor.sock |
||||
|
||||
[supervisord] |
||||
logfile=/tmp/supervisord.log |
||||
logfile_maxbytes=50MB |
||||
logfile_backups=10 |
||||
loglevel=info |
||||
pidfile=/tmp/supervisord.pid |
||||
nodaemon=false |
||||
minfds=1024 |
||||
minprocs=200 |
||||
|
||||
[inet_http_server] ; inet (TCP) server disabled by default |
||||
port=*:9001 |
||||
|
||||
[rpcinterface:supervisor] |
||||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface |
||||
|
||||
[supervisorctl] |
||||
serverurl=unix:///tmp/supervisor.sock |
||||
|
||||
|
||||
|
||||
|
||||
[program:pyone] |
||||
command = gunicorn -k eventlet -b 0.0.0.0:34567 run:app |
||||
directory = /root/PyOne |
||||
autorestart = true |
||||
|
||||
[program:online] |
||||
command = gunicorn -k eventlet -b 0.0.0.0:34568 run:app |
||||
directory = /root/vv2 |
||||
autorestart = true |
@ -1,15 +1,25 @@ |
||||
<div class="mdui-container-fluid"> |
||||
<div class="mdui-toolbar nexmoe-item"> |
||||
<a href="/">{{title}}</a> |
||||
{%if path%} |
||||
{%for idx,p in enumerate(path_list(path))%} |
||||
<i class="mdui-icon material-icons mdui-icon-dark" style="margin:0;">chevron_right</i> |
||||
{%if idx==len(path_list(path))-1%} |
||||
<a href="#">{{p}}</a> |
||||
{%else%} |
||||
<a href="{{url_for('.index',path='/'.join(path_list(path)[:idx+1]))}}">{{p}}</a> |
||||
<div class="mdui-appbar mdui-appbar-scroll-hide"> |
||||
<div class="mdui-tab mdui-color-theme" mdui-tab> |
||||
{%for user in get_od_user()%} |
||||
<a href="{{user[2]}}" class="mdui-ripple mdui-ripple-white{%if cur_user==user[0]%} mdui-tab-active{%endif%}" id="{{user[0]}}"> |
||||
<i class="mdui-icon material-icons"></i> |
||||
<label>{{user[1]}}</label> |
||||
</a> |
||||
{%endfor%} |
||||
</div> |
||||
<div class="mdui-toolbar nexmoe-item"> |
||||
<a href="{{url_for('.index',path=cur_user+':/')}}">{{cur_user}}</a> |
||||
{%if path%} |
||||
{%for idx,p in enumerate(path_list(path))%} |
||||
<i class="mdui-icon material-icons mdui-icon-dark" style="margin:0;">chevron_right</i> |
||||
{%if idx==len(path_list(path))-1%} |
||||
<a href="#">{{p|replace(cur_user+':/','')|replace(cur_user+':','')}}</a> |
||||
{%else%} |
||||
<a href="{{url_for('.index',path='/'.join(path_list(path))[:idx+1])}}">{{p|replace(cur_user+':/','')|replace(cur_user+':','')}}</a> |
||||
{%endif%} |
||||
{%endfor%} |
||||
{%endif%} |
||||
{%endfor%} |
||||
{%endif%} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
Loading…
Reference in new issue