Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pangguoming opened this issue Mar 11, 2024 · 9 comments

Comments

@pangguoming
Copy link

pangguoming commented Mar 11, 2024

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

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

求解

@pangguoming pangguoming changed the title Homeland 刚部署完,登录,注册,找回密码都可用,都掉到主页无任何其他反应 Homeland 刚部署完,登录,注册,找回密码都不可用,都跳到主页无任何其他反应 Mar 11, 2024
@pangguoming
Copy link
Author

docker-compose.yml 修改如下:


web:
   ports:
     - '8060:80'

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

@pangguoming
Copy link
Author

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
Copy link
Member

问题解决了吗?

@pangguoming
Copy link
Author

问题解决了吗?

@qichunren
Copy link
Member

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

@pangguoming
Copy link
Author

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

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

@pangguoming
Copy link
Author

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

@pangguoming
Copy link
Author

我在 docker这配置如下

web:
   ports:
     - '8060:80'

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

我已经安装的nginx 指向了8060

@pangguoming
Copy link
Author

pangguoming commented Mar 13, 2024

我在 docker这配置如下

web:
   ports:
     - '8060:80'

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

我已经安装的nginx 指向了8060

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants