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

Issue with proxy #1014

Closed
masteradit opened this issue Sep 30, 2021 · 4 comments
Closed

Issue with proxy #1014

masteradit opened this issue Sep 30, 2021 · 4 comments

Comments

@masteradit
Copy link

I have hosted Fider on Heroku and I have set up a proxy on Netlify to use a custom domain with SSL (which Netlify automatically provides). However, when I go to the website, it gives me a PAGE NOT FOUND error.

Steps to reproduce:

  1. Follow the docs to host Fider on Heroku. This will give you something.herokuapp.com as the domain.
  2. Create a site on Netlify and define this proxy rule in Netlify.toml:
[[redirects]]
from = "/*"
to = "https://something.herokuapp.com/:splat"
status = 200
  1. Edit HOST_DOMAIN in Config Vars on Heroku and put the value as fider-testing.domain.tld which is the custom domain added in Netlify.
  2. Visit fider-testing.domain.tld.

Error shown:
image

Browser Console:
image

I can't see any errors in Heroku logs, so I feel it isn't something on Heroku's end.

@goenning
Copy link
Member

It's a known limitation that a Proxy is not supported.

Why not setup the custom domain directly in Heroku

@anondev-sudo
Copy link

Please add support to set more hostnames separated with , in .env

@goenning
Copy link
Member

hey @masteradit and @anondev-sudo can you have a look at this PR #1069 ?

If you're still having this issue, please try using getfider/fider:PR_1069 this version of the image contains this change.

@goenning
Copy link
Member

I'm going to close this one as the latest version greatly simplify this by using relative path to resources. Just remember to set BASE_URL instead of HOST_DOMAIN.

Reopen if the problem persist even after updating to getfider/fider:main

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