8 Star 33 Fork 14

自由自在的小鱼 / new_DMNovel

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

東木书屋

使用 追书神器 的API进行采集,每个浏览的用户都可以自行采集小说到服务器,减少管理员的工作。

基本可以使用了。

DEMO

做了一个DEMO站点,请大家不要暴力... http://218.23.64.132:3535 管理员:admin 密码:1234

安装要求

  1. php 7.1以上版本,最好是7.2
  2. php-curl php-zip 模块

安装方法

  1. 将下列目录修改可写。 创建未上传的3个目录

    mkdir assets/sessions 
    mkdir assets/uploads
    mkdir Logs

    修改目录所有者

    sudo chown www-data:www-data assets/cache assets/sessions \
    assets/uploads assets/images/covers assets/images/avatar Logs -R
  2. 创建并导入数据库

    mysql -u root -p
    create database novel;
    use novel;
    source novel.sql;
  3. 修改配置文件

    1. 修改Config\Config.php
    $config['title'] = '東木书屋';
    $config['baseUrl'] = '/DMNovel';
    1. 修改Config\Database.php
    'user' => 'root',
    'pass' => '***',
    1. 修改.htaccess
    RewriteBase /DMNovel
  4. 打开浏览器输入地址

默认用户名admin,密码1234

Nginx 配置

简单的例子

```
server {
    listen 80 default_server;
    listen [::]:80 default_server;

    root /var/www/html;

    index index.php index.html index.htm;

    server_name _;

    location / {
        if (!-e $request_filename) {
            rewrite ^/(.*)$ /index.php?$1 last;
        }
    }

    location ~ \.(css|js|jpg|png|woff2|svg)$ {
        expires 30d;
        access_log off;
    }
    
    location ~ \.php$ {
        fastcgi_pass 127.0.0.1:9000;
        #fastcgi_pass unix:/run/php7.2-fpm.pid;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param  PATH_INFO  $fastcgi_path_info;
        fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;
        include snippets/fastcgi-php.conf;

    }

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    location ~ /\.ht {
        deny all;
    }
}
```

自动更新

使用cron进行自动更新。在服务器上增加。每天早上1点进行更新。
# crontab -e 

```
0 1 * * * curl http://localhost/update
```

预览图

首页 书籍详情 章节 排行 分类 搜索

Empty file

About

重新构建DMNovel expand collapse
PHP
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
PHP
1
https://gitee.com/hbbcs/new_DMNovel.git
git@gitee.com:hbbcs/new_DMNovel.git
hbbcs
new_DMNovel
new_DMNovel
master

Search

14c37bed 8189591 565d56ea 8189591