在一次使用 nextcloud for windows desktop client 的时候,突然无法认证。nextcloud windows 客户端呼出了 browser 进行身份验证,但是一直失败。出现了如下图所示的错误
nextcloud there was an error accessing the token endpoint: error transferring login/v2/poll server replied: bad request
google 一段时间,终于发现这篇proxy_set_header Host $http_host;,说到点上了。
H... 阅读全文 »
本次手动安装一个 vscode 扩展。在对应目录下执行 npm install
遇到错误,如下
Fetching vscode.d.ts from: https://raw.githubusercontent.com/Microsoft/vscode/809e7b30e928e0c430141b3e6abf1f63aaf55589/src/vs/vscode.d.ts
Error installing vscode.d.ts: Error: getaddrinfo ENOENT raw.githubusercontent.com
乍一看是网络问题。那就对终端设置一下代理吧。
注意:Win... 阅读全文 »
gitpushworkflow
feature description: git add . and git commit -m and git push workflow
一个不是那么复杂的 git add .、git commit -m 'xxx'、git push 的工作流脚本工具。
工具:Click Me
Usage
1. in macOS or any Linux systems
cp linux-gitpush.sh to any folder you like, such as /path/of/linux-gitpush.sh
at current git repo's... 阅读全文 »
参考: nextcloud开放注册-添加注册功能
补充几点
如果使用的是qq邮箱,qq邮箱的 smtp 的服务器地址是 smtp.qq.com,使用SSL,端口号465或587。官方帮助中心文档
注册用户需要设定一个正常收发邮件的邮箱地址
使用 docker cp 命令将 registration-1.3.0.tar.gz 文件拷贝到容器中的 /var/www/html/apps 路径并解压缩这个文件得到 registration 文件夹,该文件夹的所有者和所在组,以及访问权限的设置很可能与同位置的其他文件(或文件夹)不一样。需要修改一下
chown -R www-data:root... 阅读全文 »
2021-07-02 问题解决了
见这个链接
罪魁祸首就是这个功能,关掉就好了。就不会生成对应的 UPnP 规则
四月份就发现了这个问题了 ?️,到今天终于解决。
放出几张聊天记录,来记录一下这个奇妙的“解密”旅程。
哈哈,那次奇迹般的好了可能是机器刚刚重启,那条8080的 upnp 的重定向规则还没有生成导致的防火墙对应链的转发规则还没有生成,所以当时无法访问 10.10.10.3:8080
局域网(10.10.10.0/24)内
软路由是中心网关,ip 是 10.10.10.1,有 qbittorrent 服务,监听在8080端口。
一台旧的thinkpad 笔记... 阅读全文 »