本所已开启 secure mode, 操作过程中参考了 bgme 站长的博文《中文长毛象实例开启 secure mode 的必要性》[1]。
此处为和我一样新手上路的站长们做一点补充: .env.production 所在的目录为 home/mastodon/live
重启 Mastodon 服务的操作如下(参考官方文档 "Upgrading to a new release" 章节[2] ):在回到 root 账户后,执行如下两条命令:
systemctl restart mastodon-sidekiq
systemctl reload mastodon-web
就好啦。
[1] https://blog.bgme.me/posts/the-necessity-of-chinese-instance-to-enable-secure-mode/
[2] https://docs.joinmastodon.org/admin/upgrading/