Skip to content

DDS-Derek/Kindle-Reader-Web-CLI

 
 

Repository files navigation

安装

从代码运行

pip install -r requirements.txt
start.bat

环境

Python 3.11.2
OPENJDK 17+
请使用管理员/root身份运行本程序

kindle端: (native) http://IP:5000 or (nginx)http://IP:1000

web端: (native)http://IP:8080 or (nginx)http://IP:1000/reader

点击标题

在render运行

render中部署:

  1. 注册后选择新建Web Service

    image

  2. 翻到下面的Public Git repository,填入https://github.com/Suto-Commune/Kindle-Reader-Web-CLI/,然后点击继续

    image

  3. 填入名称(想填什么填什么)

    image

  4. 选择节点

    image

  5. 拉到Environment选择Docker

    image

  6. 点击`Create Web Service'

    image

  7. 点击Environment,点击Add Environment Variable

  8. 密钥填写PORT,value填写80,填写完毕点击保存更改

    image

  9. 拉到最上面,下图中框选的地方就是部署的地址,访问即可

    image

说明:

http://你的地址/reader #reader服务端的地址
http://你的地址/ #kindle客户端地址

注意!第一次进入reader服务端的地址可能会报错,请把 //你的地址/reader3 改为 //你的地址/reader/reader3

在下图中红色框选的位置设置

image

配置

配置文件在head/config下!!!

示例

port = None
DEBUG = False
url = "http://127.0.0.1:8080/reader3/"

AUTO_BACKUP = False  # 自动备份到GIT
AUTO_BACKUP_TIME = 3600  # 自动备份间隔时间
CLONE_MODE = False  # 初次启动恢复上次备份
github_name = "Github_Username"
github_repo = "Github_repo_name"
github_token = "Github_Token_AES"  # 访问/aes/<github_token>获取
AES_KEY = "1234567890"  # AES密钥

# 系统环境变量
br = '<div class="wb"></div>'
read_mode = 0

               =========                  
            ===============               
           =================              
          ===  ==============             
          ===================             
                   ==========             
   ========================== =======     
 ============================ ========    
============================= =========   
============================ ==========   
========================== ============   
============ ==========================   
========== ============================
========= =============================
 ======== ============================
  ======= ==========================
          ==========
          ===================
          ==============  ===
           =================
            ===============
               =========

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 45.7%
  • HTML 32.0%
  • Python 18.5%
  • Perl 1.7%
  • Dockerfile 1.3%
  • C++ 0.4%
  • Other 0.4%