ruby-china / homeland

:circus_tent: An open source forum/community system based on Rails, developed based on Ruby China.
https://homeland.ruby-china.org
MIT License
3.8k stars 1.21k forks source link

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

Closed pangguoming closed 5 months ago

pangguoming commented 8 months ago

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

部署地址: http://ai-helloworld.com/

求解

pangguoming commented 8 months ago

docker-compose.yml 修改如下:


web:
   ports:
     - '8060:80'

 caddy:
   ports:
     - '8061:80'
     - '8062:443'
pangguoming commented 8 months ago

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
qichunren commented 8 months ago

问题解决了吗?

pangguoming commented 8 months ago

问题解决了吗?

qichunren commented 8 months ago

我在你网站测试发现的的确是这样,但是注册数据是保存到数据库了。可能与https证书有关。你想办法这个配置好再试试。

pangguoming commented 8 months ago

我在你网站测试发现的的确是这样,但是注册数据是保存到数据库了。可能与https证书有关。你想办法这个配置好再试试。

能先关闭https 吗? 不想花钱买证书

pangguoming commented 8 months ago

对了,我是 已经安装了nginx,代理了 homeland 在docker中的nginx

pangguoming commented 8 months ago

我在 docker这配置如下

web:
   ports:
     - '8060:80'

 caddy:
   ports:
     - '8061:80'
     - '8062:443'

我已经安装的nginx 指向了8060

pangguoming commented 8 months ago

我在 docker这配置如下

web:
   ports:
     - '8060:80'

 caddy:
   ports:
     - '8061:80'
     - '8062:443'

我已经安装的nginx 指向了8060

确实是这里的原因,关闭我的nginx 配置 caddy 接管 80和 443端口 就可以了,但我不能关闭