内网文库搭建备忘录


环境

内网服务器:192.168.1.125

相关操作

执行以下docker命令:

[root@test125 ~]# docker ps
CONTAINER ID        IMAGE                    COMMAND             CREATED             STATUS              PORTS                                    NAMES
66021e1feeb8        andyshinn/dnsmasq:2.75   "dnsmasq -k"        3 weeks ago         Up 3 weeks          0.0.0.0:53->53/tcp, 0.0.0.0:53->53/udp   dns-server
db73516c3057        ff426288ea90             "/bin/bash"         3 months ago        Up 3 weeks          0.0.0.0:4999->8181/tcp                   mindoc

进入doc容器命令:

docker exec -it  mindoc /bin/bash

启动命令:

/mnt/software/mindoc/mindoc_linux_amd64 &

配置文件:

/mnt/software/mindoc/conf/app.conf

内网访问地址:http://192.168.1.125:4999

DNS访问地址:http://doc.k12iedu.com

Nginx配置(180服务器,doc.k12iedu.com.conf ):

server{
    listen 80;
    server_name doc.k12iedu.com;
    proxy_set_header            Host $host;

    location /{
             proxy_pass http://192.168.1.125:4999;
    }
}

文件上传大小配置(Nginx中的HTTP配置即可):

client_max_body_size     10m;
爪哇笔记