Homeland 刚部署完,登录,注册,找回密码都不可用,都跳到主页无任何其他反应,求解
配置了邮件发送服务,邮箱找回密码提示:Email 没有锁定。
部署地址 http://ai-helloworld.com/
已经反复重新 部署过好多次,清空过 docker 容器,无效
docker-compose.yml 修改如下:
web: ports: - '8060:80' caddy: ports: - '8061:80' - '8062:443'
app.config.env 修改如下:
RAILS_ENV=production # RAILS_LOG_TO_STDOUT=true # Database DATABASE_URL=postgres://postgres:@postgresql:5432/homeland # DATABASE_POOL=64 REDIS_URL=redis://redis:6379/1 # App Config app_name=AI-helloworld domain=ai-helloworld.com admin_emails=xxxxxxx@yeah.net mailer_provider=smtp mailer_sender=xxxxxxxx@163.com mailer_options_address=smtp.163.com mailer_options_port=465 mailer_options_domain=163.com mailer_options_user_name=xxxxxxxx@163.com mailer_options_password=xxxxxxxxxxxx mailer_options_authentication=login mailer_options_enable_starttls_auto=true
经测试:
注册、登陆,页面正常打开,但提交时,会跳到主页,无任何其他反应。
??
找到原因了 我在 docker 这配置如下
eb: ports: - '8060:80' caddy: ports: - '8061:80' - '8062:443'
我已经安装的 nginx 指向了 8060
但这样不行,必须关闭我的 nginx 配置 caddy 接管 80 和 443 端口 就可以了,但我不能关闭自己的 nginx