nextcloud 21.0.2 点击登录耗时、太慢 login too slow,反向代理头部配置错误问题修复

首先我遇到一个问题,点击登录一直停留在登录页,转了好久就是不进主页。英文 login slow 等等关键字搜到一些 help.nextcloud.com 域名下的帖子,但是没法解决问题。而且我这是很新的 nextcloud 系统,21.0.2,似乎没有看到有针对性的办法。但是后面发现了下面这个问题,我修复了下面这个问题。似乎是阴差阳错的把这个登录慢、登录页面一直转不跳转到登录后的首页的问题给修复了…… 另外一个问题:设置 - 管理 - 概览中,看到一个警告信息 反向代理头部配置错误,或者您正在通过可信的代理访问 Nextcloud。如果您不是通过可信代理访问 Nextcloud,这是一... 阅读全文 »

解决 nextcloud there was an error accessing the token endpoint: error transferring login/v2/poll server replied: bad request 问题

在一次使用 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... 阅读全文 »

解决 npm install 时遇到的 Error installing vscode.d.ts: Error: getaddrinfo ENOENT raw.githubusercontent.com 问题

本次手动安装一个 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... 阅读全文 »

分享一个 git add、git commit、git push 的快捷工作流工具

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 开放注册,给 nextcloud 增加用户注册功能

参考: 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... 阅读全文 »