前言
搭建一个类似于notepad的纯文本笔记本,可以用来做记事本,也可以用来做临时记录的工具。
视频教程
环境准备
- 腾讯香港轻量云应用服务器1核1G(24元/月款)
- 域名一枚并做好解析
- Docker
- 宝塔面板
安装Docker
更新、安装必备软件
apt-get update && apt-get install -y wget vim
安装脚本
wget -qO- get.docker.com | bash
查看 Docker 安装版本等信息
docker version
启动 Docker 服务
systemctl start docker
查看 Docker 运行状态
systemctl status docker
将 Docker 服务加入开机自启动
systemctl enable docker
安装宝塔
访问官网:https://www.bt.cn/bbs/thread-19376-1-1.html
免登陆脚本,更多脚本可以看这里:整理了一些常用的VPS服务器脚本,让你更好地玩鸡鸡!
sed -i "s|if (bind_user == 'True') {|if (bind_user == 'REMOVED') {|g" /www/server/panel/BTPanel/static/js/index.js
rm -rf /www/server/panel/data/bind.pl
安装minimalist
安装程序
项目地址:https://github.com/pereorga/minimalist-web-notepad/tree/docker
mkdir -p /root/data/docker_data/minimalist
cd /root/data/docker_data/minimalist
进入文件夹(/root/data/docker_data/minimalist
),运行,
wget https://github.com/pereorga/minimalist-web-notepad/archive/refs/heads/docker.zip
进入宝塔解压,

进入文件夹,
cd minimalist-web-notepad-docker/
建立镜像,
docker build -t minimalist-web-notepad .

安装minimalist
docker run -d -it --restart=always --name minimalist-web-notepad -v /root/data/docker_data/minimalist/minimalist-data:/var/www/html/_tmp -p 8006:80 minimalist-web-notepad

配置SSL

配置反向代理
location / {
proxy_pass http://127.0.0.1:8006/;
rewrite ^/(.*)$ /$1 break;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade-Insecure-Requests 1;
proxy_set_header X-Forwarded-Proto https;
}

成功访问

好了,开始玩耍吧!
评论区