Ruby Homeland 刚部署完,登录,注册,找回密码都不可用,都跳到主页无任何其他反应

pangguoming · 2024年03月08日 · 最后由 pangguoming 回复于 2024年03月13日 · 340 次阅读

Homeland 刚部署完,登录,注册,找回密码都不可用,都跳到主页无任何其他反应,求解

配置了邮件发送服务,邮箱找回密码提示:Email 没有锁定。

已经反复重新 部署过好多次,清空过 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

需要 登录 后方可回复, 如果你还没有账号请 注册新账号