解决NextCloud升级后错误:/.well-known/webfinger和/.well-known/nodeinfo

817 浏览技术资料nextcloud
0

最近,升级了Nextcloud后,出现了如下错误:

Your web server is not properly set up to resolve “/.well-known/webfinger”. Further information can be found in the documentation 26.
Your web server is not properly set up to resolve “/.well-known/nodeinfo”. Further information can be found in the documentation 26.
Your installation has no default phone region set. This is required to validate phone numbers in the profile settings without a country code. To allow numbers without a country code, please add “default_phone_region” with the respective ISO 3166-1 code :arrow_upper_right: 41 of the region to your config file.

对于,前面两个错误,直接在Nginx重写规则里加上以下语句(注意替换路径):

# according to the documentation these two lines are not necessary, but version 21.0.0 will produce warnings in the overview setup check
location = /.well-known/webfinger { return 301 /nextcloud/index.php$uri; }
location = /.well-known/nodeinfo { return 301 /nextcloud/index.php$uri; }

# anything else is dynamically handled by Nextcloud
location ^~ /.well-known { return 301 /nextcloud/index.php$uri; }

如果你用的是Oneinstack,你只需要在自带的nextcloud的nginx重写规定里加上:

#2021年7月16日新增加by qi 
 # according to the documentation these two lines are not necessary, but version 21.0.0 will produce warnings in the overview setup check
 location = /.well-known/webfinger   { return 301 $scheme://$host/index.php$uri; }
 location = /.well-known/nodeinfo   { return 301 $scheme://$host/index.php$uri; }
              # anything else is dynamically handled by Nextcloud
 location ^~ /.well-known          { return 301 $scheme://$host/index.php$uri; }

对于最后一个错误,只需要在你的config配置文件中加上:

'default_phone_region' => 'CN',

分享到:
问的问题

Login

Welcome! Login in to your account

Remember meLost your password?

Don't have account. Register

Lost Password

Register