目前文档中也没说可以配置多个域名。
我做了个尝试,就是 app.local.env 的 cert_domain 配置了 www 域名,然后 www 的可以访问了,但原来的根路径访问不了
我的站点是 indiehackers.net
www 的直达www.indiehackers.net
请求首页 https://indiehackers.net/ 出现这样的错误
备注:这个日志是通过 docker logs -f 来查看 homeland_app 的日志发现的
上面两个问题的原因找到了,解决方案来源于:https://ruby-china.org/topics/40160#reply23
但旧版本是中文是可以的,更新后就不行了,改成英文后可以正常访问了
然而搜索功能失效!即搜索任何内容都是空的
使用 sudo make reindex 报错,如下
Starting homeland_elasticsearch ... done
Starting homeland_redis ... done
Starting homeland_postgresql ... done
`Redis#exists(key)` will return an Integer by default in redis-rb 4.3. The option to explicitly disable this behaviour via `Redis.exists_returns_integer` will be removed in 5.0. You should use `exists?` instead.
rake aborted!
Don't know how to build task 'elasticsearch:import:model' (See the list of available tasks with `rake --tasks`)
/home/app/homeland/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `load'
/usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `kernel_load'
/usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:28:in `run'
/usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli.rb:476:in `exec'
/usr/local/bundle/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/bundle/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/bundle/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
/usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in `dispatch'
/usr/local/bundle/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
/usr/local/bundle/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in `start'
/usr/local/bundle/gems/bundler-2.1.4/exe/bundle:46:in `block in <top (required)>'
/usr/local/bundle/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors'
/usr/local/bundle/gems/bundler-2.1.4/exe/bundle:34:in `<top (required)>'
/usr/local/bundle/bin/bundle:23:in `load'
/usr/local/bundle/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
make: *** [reindex] Error 1
不好意思,我知道为啥了,现在都是通过在后台管理安装插件的形式来做,插件地址:https://github.com/topics/homeland-plugin