网页记事本,用于临时记录一些内容
默认监听 10003 端口,数据储存在 webnote 可执行文件同级目录的 data.db 文件中。注:反向代理时不要代理到域名子目录
- 编译源代码
- 运行程序
./webnote
编译步骤
编译依赖:gcc,go
git clone https://github.com/nibazshab/webnote.git
cd webnote
go get ./...
CGO_ENABLED=1 go build -ldflags="-s -w"
测试平台:Linux amd64
POST /{uid}
请求:application/x-www-form-urlencoded,无返回
body:t
文本内容
GET /{uid}
返回该链接所对应的文本内容
- 解决 favicon.ico 被重定向的问题
- 变更相对路径为绝对路径
https://github.com/nibazshab/webnote
Powered by https://github.com/pereorga/minimalist-web-notepad
MIT © ZShab Niba