screenshot
to update
【2021.07.30】 1. Fix the problem of login failure caused by Tianyi changing the login interface. Download the file directly from github to overwrite it 【2021.06.01】 1. Adapt to kodi (WebDAV) 2. Optimize performance 【2020.05.10】 Optimize file access/download speed. Under the recommended updates that have been installed, the address of the latest version is: https://github.com/iiiiiii1/CTList 。 【2020.04.23】 1. Improve the mechanism of keeping cookies alive 2. Add mandatory HTML/WebDAV configuration item 3. Accelerate resource release 【2020.04.20】 Now stop sending code. Basically, all those who left a message have been sent. The project will not develop new functions for the time being. You can just leave a message about a bug. 【2020.04.19】 Repair some BUGs. The used ones can be updated and repaired 【2020.04.15】 The project is temporarily closed, and 30 codes are reissued. If the inactive or used ones are installed, they can continue to be activated.
function
-
Support multiple accounts -
Support for displaying folder size -
Support automatic check-in every day -
Supports asynchronous caching -
Support hiding specified folders and files -
Support entire directory, single directory or single file access encryption -
Support to display any directory and customize the root directory -
Support read-only mount to PotPlayer ( WebDAV ), nPlayer ( WebDAV ), kodi ( WebDAV )
Application code
Tip: After obtaining the authorization code, it can only be used with the bound account. It can be installed on any server.
#2020.4.14 2674253DF2154B5A00F5DF05756E7652 9D0B2F6DFA114276DD9A954E6F9948DA 6190D9FF0597748CF164899045D4E210 B2329E6485CD5B7694D0719BF958131E 65F0062A94F68E0179B244D636D89BCD 61683B9642E04DFF0B9353E2E990FF32 231676C503495F33E738C64E791064E9 A656DF714A20A0D2D5E279D16983AB33 D81B56EFA750E69A9AB5EE131F56E4F1 A5177158C8FC44FB8D177B22684954F1 A14519C669990E611F06F5239B0690D2 43A81E7BE5AD2369DA81B7B31FBB4F69 28C3EBC5CB06A6CA9F0BE2F7A42D6F4A C9E223825FD750FAD4FFEF2F5BBB603E D77462297AF7F3C333770CAFA7A99CBB 0A65F0E3C54D01502AE1D987BEA1EF89 BDC77BE0C3C504CBC6861D19654ACAF9 D87CF362094468706A7C96F4CE190862 629B180D9AA05B340EFB140B796BF4FD 60EF6F6B8FF478F06EBBA5F8D097786F 1C0A10B53D249A276C9BEDEF98E5F9A3 BFD242F9E7E2E861AAC2C7C3AFF05418 4075B20EBCBFDEBD2B7341327E4D7A95 44CD247E86EF17BFB850A1ED1F29B868 832749B873F8B3AB20271FAA9CBD108E C0FBDC73C6445660753173E4904270C7 A85895DCB7281C9A5C97B6BEC8F24525 064C591C151D8F14000E975E61FC606E 7E09D3E6C88FD1E40D75DDA0A86BDD26 8AC4C583974E70256E1B6F994947768C #New on April 15, 2020 619A60E465F6384E6E612A39E9792A02 76F3BCD10C053DE6F590E988B5794B73 3E3B5E2EBF9B7283E4D83BD6E7A22A4D E016F9D4E7151252978396750464B7A6 BFDBAFAC6555D3D684808C79EEC89CD7 5C5C8313311ECC9AA2CE2124D7BEDE08 9A5CA3744DCD93399C0208D8F080A345 D0378BA424E024D9A7E6AFEDCF072892 2482219C2DB38A28B693C83123ECD330 1650CE4BA08450B3069877D3196CA580 C697525F70C3573A3BFFC35A593C882B 4010DB574F9E8BC6FCE699F7EED69291 912185D9CC84F7D88079408A4C315B05 C20341E5B58D429D96A95E4129D5F853 ADA16FC3CC9791041187E8E3DA734D2E 56CA0807F24FC7BF005CA61E59A3E562 18EDA147D328AE8E715FDEF465216672 7B3E000B3EA890C76620CB3F749DFD07 135EE1FDE7B0478E8816CFB8A707FDED 651CFE6712CC68CAB511854E5FC96B04 E7008EEC4B54ED547C3A401B6E9ACB10 8390CFC71D159058615798F55D4D4D6D 2E7C42E0D395B7D66DEE2C6A80116BF4 4C9F2B93B501653308970BB20E556A1D 4D48D713CE4D552955905E5A4E78C7AD 4438DC2F531054A9279A1745FF582530 E154D7F9A7D5A3B493D642C394A38640 976130C15FE5D932F8FF86C0E54F671C CD0A3D8DB4079DFDF51802019D8EB95D 240EF1812AE40B5F494A4134E0F309B4 FF949E15A4BBD497C276497337266481 B79DDA22666B855CED75218526998BF9 F279A5404431D34A5320D15247ED4E32 DA56FAF28AA55EB3F2C27FE22BAC6443 0123798B2BFAF5648E76ADD6D37A8A99 EDD59DCE9717DEF0684B44AA55F3220D 25DFE5E6FD05E61EC3FDEC2596B89268 428AE41787E4E40CA81D3C9BD68A7B60 D1635D178945D06825F69DCD6FE8E521 11A8CC190EB8426E21D478FC21949AF3 #New on April 23, 2020 1D15BC7C9D1F144389A2B75FCCE8E4EE 941E7C1D8564D0B6BB38D4183EB2AAD4 3B48BBF789A9481A53C0EFC5C6E88C96 8046CF262FF4488553CE9AB6FC5A2ED7 B402B08B8386F612D7A087136F3029DF 7FD3ADFDEADEF2B184538B5244CF5096 35E86A05763C3F10A6C9D4FB9423000A 3A60EE7341E2D17E228E8D541AE19B5F 329586545FEA6221827F95EC39377CAA 6C519BA5CB4CD3F0BE5C00D9B679D329 #New on April 25, 2020 205D21D3B34F479D0F64E1F1C5DC9647 95BFADD620483E7D6BB7B8D7957E8262 587BA47676352B4F9E11925E47937782 98DFD8A200050BE7D9A8DC7BBEE1FF5E 1E0BFF9D6D598FF146475A641725C63C 4A9ACDA1F26DA156E34D7AF2CDBD3FA3 20F1F9C98A487369745DD9EDC5B8ABC0 C051441120C80489412E40C6069980B5 3DCE9DF07BFCEE09A4EE17AC35B973E1 993011668DA5D80ACD8BDCDEDABF8DD2
install
#Create and enter the CTList directory mkdir /opt/CTList && cd $_ #64 bit system download wget https://raw.githubusercontent.com/iiiiiii1/CTList/master/exec/amd64/linux/CTList #32-bit system download wget https://raw.githubusercontent.com/iiiiiii1/CTList/master/exec/i386/linux/CTList #Arm architecture download wget https://raw.githubusercontent.com/iiiiiii1/CTList/master/exec/arm/linux/CTList #Give permission chmod +x CTList
#Download Profile wget https://raw.githubusercontent.com/iiiiiii1/CTList/master/config.json #Download the default theme file wget https://raw.githubusercontent.com/iiiiiii1/CTList/master/index.html
[ { "Enable": 1, # 0: Close, 1: Open "UserName": "", # login user name of Tianyi Cloud online disk, @ 189.cn is not required "Password": "", # Tianyi Cloud Disk Login Password "CaptchaMode": "0", # verification code 0: Reject login when encountering verification code, 1: Enter verification manually, others: API of automatic identification verification code "ViewMode": 0, # display mode 0: Automatic recognition 1: Use web mode only 2: Only use WebDAV mode "RefreshToken": "", # Tianyi online disk session Keep the default value. If an exception occurs, clear the value "SubPath": "/CTList", # Specifies that an account is attached to a directory on the website. Each directory value must be unique when there are multiple accounts "RootPathId": "- 11", # Set the ID of the directory displaying the Tianyi web disk, and the root directory is - 11 "HideItemId": "0 | - 16", # Do not display a directory or file, fill in its ID Each item is separated by "|" "AuthItemId": "", # Encrypt a directory or file "<ID of file or directory>?<Encryption mode>?<User name>:<Password>" "RefreshURL": 189, # Number of seconds to download the direct link cache If timeout occurs, it will be updated passively "RefreshInterval": 1800 # Refresh the directory structure. If it is not updated frequently, it is recommended to set a longer time } ]
[ -f /etc/security/limits.conf ] && LIMIT='262144' && sed -i '/^\(\*\|root\)[[:space:]]*\(hard\|soft\)[[:space:]]*\(nofile\|memlock\)/d' /etc/security/limits.conf && echo -ne "*\thard\tmemlock\t${LIMIT}\n*\tsoft\tmemlock\t${LIMIT}\nroot\thard\tmemlock\t${LIMIT}\nroot\tsoft\tmemlock\t${LIMIT}\n*\thard\tnofile\t${LIMIT}\n*\tsoft\tnofile\t${LIMIT} \nroot\thard\tnofile\t${LIMIT}\nroot\tsoft\tnofile\t${LIMIT}\n\n" >>/etc/security/limits.conf
#Tips for using application code [Success]: Binding succeeded [Query Mode]: query mode, query authorization code The application code has been used If there is no valid authorized user, an error will appear when running the program! No Valid User.
#Direct operation /opt/CTList/CTList -a "AUTH_TOKEN" -bind 0.0.0.0 -port 8000 #Background operation /opt/CTList/CTList -a "AUTH_TOKEN" -bind 0.0.0.0 -port 8000 -d
#CentOS 6 iptables -I INPUT -p tcp --dport 8000 -j ACCEPT service iptables save service iptables restart #CentOS 7 firewall-cmd --zone=public --add-port=8000/tcp --permanent firewall-cmd --reload
#Set your running listening port, that is, you can access the program through the ip: port. The default here is 8000. port="8000" #Set your authorization code and modify it yourself AUTH_TOKEN="xxxxxxx" #Copy the following code to SSH to run cat > /etc/systemd/system/ctlist.service <<EOF [Unit] Description=ctlist After=network.target [Service] Type=simple ExecStart=/opt/CTList/CTList -a ${AUTH_TOKEN} -bind 0.0.0.0 -port ${port} -l Restart=on-failure [Install] WantedBy=multi-user.target EOF #Start and set the automatic startup systemctl start ctlist systemctl enable ctlist
Start: systemctl start ctlist Stop: systemctl stop ctlist Restart: systemctl restart ctlist View status: systemctl status ctlist
Bind domain name
Tip: If you have a pagoda panel, you can use the pagoda directly. If you don't have a pagoda panel, you can use caddy. Choose one from two.
Pagoda panel
Caddy binding
wget -N --no-check-certificate https://raw.githubusercontent.com/iiiiiii1/doubi/master/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh #Alternate address wget -N --no-check-certificate https://www.moerats.com/usr/shell/Caddy/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh
#The following is a whole. Please modify the domain name and copy it to SSH to run! #Http access. This configuration does not automatically issue SSL echo "www.moerats.com { gzip tls admin@moerats.com proxy / 127.0.0.1:8000 }" > /usr/local/caddy/Caddyfile #Https access. This configuration will automatically issue SSL. Please resolve the domain name to the VPS server in advance echo "www.moerats.com { gzip tls admin@moerats.com proxy / 127.0.0.1:8000 }" > /usr/local/caddy/Caddyfile
/etc/init.d/caddy start
uninstall
#Automatic startup is not set rm -rf /opt/CTList #Set automatic startup after startup systemctl stop ctlist systemctl disable ctlist rm -rf /opt/CTList /etc/systemd/system/ctlist.service
Multi account configuration
[ { "Enable": 1, # 0: Close, 1: Open "UserName": "", # login user name of Tianyi Cloud online disk, @ 189.cn is not required "Password": "", # Tianyi Cloud Disk Login Password "CaptchaMode": "0", # verification code 0: Reject login when encountering verification code, 1: Enter verification manually, others: API of automatic identification verification code "ViewMode": 0, # display mode 0: Automatic recognition 1: Use web mode only 2: Only use WebDAV mode "RefreshToken": "", # Tianyi online disk session Keep the default value. If an exception occurs, clear the value "SubPath": "/CTList", # Specifies that an account is attached to a directory on the website. Each directory value must be unique when there are multiple accounts "RootPathId": "- 11", # Set the ID of the directory displaying the Tianyi web disk, and the root directory is - 11 "HideItemId": "0 | - 16", # Do not display a directory or file, fill in its ID Each item is separated by "|" "AuthItemId": "", # Encrypt a directory or file "<ID of file or directory>?<Encryption mode>?<User name>:<Password>" "RefreshURL": 189, # Number of seconds to download the direct link cache If timeout occurs, it will be updated passively "RefreshInterval": 1800 # Refresh the directory structure. If it is not updated frequently, it is recommended to set a longer time }, { "Enable": 1, # 0: Close, 1: Open "UserName": "", # login user name of Tianyi Cloud online disk, @ 189.cn is not required "Password": "", # Tianyi Cloud Disk Login Password "CaptchaMode": "0", # verification code 0: Reject login when encountering verification code, 1: Enter verification manually, others: API of automatic identification verification code "ViewMode": 0, # display mode 0: Automatic recognition 1: Use web mode only 2: Only use WebDAV mode "RefreshToken": "", # Tianyi online disk session Keep the default value. If an exception occurs, clear the value "SubPath": "/CTList", # Specifies that an account is attached to a directory on the website. Each directory value must be unique when there are multiple accounts "RootPathId": "- 11", # Set the ID of the directory displaying the Tianyi web disk, and the root directory is - 11 "HideItemId": "0 | - 16", # Do not display a directory or file, fill in its ID Each item is separated by "|" "AuthItemId": "", # Encrypt a directory or file "<ID of file or directory>?<Encryption mode>?<User name>:<Password>" "RefreshURL": 189, # Number of seconds to download the direct link cache If timeout occurs, it will be updated passively "RefreshInterval": 1800 # Refresh the directory structure. If it is not updated frequently, it is recommended to set a longer time } ]
Use questions
For example: SubPath:/CTList visit: http://127.0.0.1:5189/CTList For example: SubPath:/ visit: http://127.0.0.1:5189/
RootPathId: the folder ID of the Tianyi web disk corresponding to the root directory displayed in the list, and the root directory ID of the Tianyi web disk is - 11 HideItemId: hide the files or folders in the Tianyi online disk in the display directory, fill in their IDs, and separate them with "|" AuthItemId: Encrypt the files or folders in the Tianyi online disk in the display directory, separated by "|"
#Single writing "AuthItemId": "-11?0?UserName:Password" #Multiple writing methods "AuthItemId": "-11?0?UserName:Password|-16?1?UserName:Password" #Field resolution <File or directory ID>< Encryption mode>< User name>:<Password> #Encryption mode. Selecting 0 and 1 for encrypted files has the same effect 0: Only this layer of folder is encrypted. You can directly access the contents of this layer of folder 1: Encrypt all sub items of this folder
#The four refresh logics are completely asynchronous and do not affect each other Token: 60 * 60 * 10 Cookies (session authorization): 60 * 30 RefreshURL (real download link): 189 (the configuration file can be changed to<RefreshURL>) RefreshInterval (refresh directory structure): 60 * 15 (the configuration file can be modified, and the global minimum value takes effect<RefreshInterval>)
Usage of CTList: -bind string Bind Address (default "127.0.0.1") -port string Port (default "5189") -a string Auth Token. -c string Config file. (default "config.json") -t string Index file. (default "index.html") -json Output json. -d Run in the background. -l Less output.
#When there are multiple accounts, ensure that the SubPath item is unique When SubPath is configured as empty ("") or single diagonal bar ("/") Access path is http://0.0.0.0 When SubPath is configured as a specific field ("/CTList"), "/CTList" can be modified to your favorite field Access path is http://0.0.0.0/CTList
#Network -->Add -->WebDAV #Host: fill in the domain name #Path: fill in SubPath value E.g./CTList #Please fill in others according to the situation #Advantages: You can play videos of various encoding formats in the player #You can appropriately reduce the minimum cache time to improve the browsing experience
400 (Not Found URL): The link to the file could not be found 404 (Not Found): The initial cache directory structure is not completed or the file path is incorrect 422 (Not Found Real URL): Failed to generate a real file download link (usually the file is reported and cannot be downloaded) 5XX: It's usually a server problem Some possible situations are: the main program is not open, the port is blocked, and the reverse configuration is incorrect
#Get a three-month free gold member https://m.cloud.189.cn/zhuanti/2020/share-vip/web.html #Get one year's gold membership for free, and pass the picture around https://m.cloud.189.cn/zhuanti/2020/teacher-vip/web.html #Get free family cloud 1T space https://m.cloud.189.cn/zhuanti/2019/1t-v2/web.html
Copyright notice: This is an original article, and the copyright belongs to Rat's Blog All, please indicate the source for reprinting!
Link to this article: https://www.moerats.com/archives/1028/
If the tutorial needs to be updated, or 404 appears on the related link, you can leave a comment below the article.