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

Redirect error on alpha2 container setup #5332

Closed
poVoq opened this issue Dec 11, 2023 · 2 comments
Closed

Redirect error on alpha2 container setup #5332

poVoq opened this issue Dec 11, 2023 · 2 comments
Labels
type: bug Something isn't working

Comments

@poVoq
Copy link

poVoq commented Dec 11, 2023

Description

I recreated the recommended alpha2 docker setup with Podman and Nginx as a reverse-proxy (with the recommended nginx example) but I get the following error when navigating to the page:

You can't open this page using this URL. For this endpoint "https://docs.slrpnk.net/" is expected but got "https://10.88.0.86:41043".

I suspect this might be just a reverse-proxy issue, but I am not an Nginx expert and the example config looks ok to me.

Any idea what might be the cause of this?

Steps to reproduce

Set up alpha 2 as recommended in the official docu but with Podman and Nginx.

Expected behaviour

Should work 😅

Logs

No response

Config

No response

Your Setup

  • Host OS: Fedora 38
  • HedgeDoc version: 2.0 alpha2

Additional context

No response

@poVoq poVoq added the type: bug Something isn't working label Dec 11, 2023
@mrdrogdrog
Copy link
Member

There is an error in the docs in the nginx config example. You need to set the proxy header X-Forwarded-Host instead of Host

@poVoq
Copy link
Author

poVoq commented Dec 11, 2023

Thanks, that seems to have fixed it indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants