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

can't configure wrapperr with a base url #82

Closed
BasO12 opened this issue Dec 11, 2023 · 5 comments
Closed

can't configure wrapperr with a base url #82

BasO12 opened this issue Dec 11, 2023 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@BasO12
Copy link

BasO12 commented Dec 11, 2023

I am currently trying to set up Wrapper with a base url like this:
image
however when I do this, I get the error "unable to parse api" and I lose complete access to Wrapperr.
The request I see in the logs ends up looking like this:
image

If I do not use the /wrapped url in nginx, it works flawlessly.
What am I doing wrong?

@aunefyren
Copy link
Owner

Hey, thanks for submitting an issue.

Have you restarted Wrapperr after the change? Also what is your Nginx config? You use /wrapperr in the screenshot.

@aunefyren aunefyren added the help wanted Extra attention is needed label Dec 12, 2023
@BasO12
Copy link
Author

BasO12 commented Dec 12, 2023

Hello,
Thanks for the response, I used these entries as an example. I have been trying it with 'wrapped' in nginx:
image
when I use this exact config with just '/' as location and no url base, it works just fine.
Restarting my docker container does not help sadly.

@aunefyren
Copy link
Owner

aunefyren commented Dec 12, 2023

Are you trying to map wrapper-ip/wrapperr to nginx-ip/wrapped? In your first screenshot the base is /wrapperr.

Also, is that Nginx config correct? Wouldn't be something like this?

location /wrapped {
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_pass http://[WRAPPERR-IP]:8000/wrapped;
}

@BasO12
Copy link
Author

BasO12 commented Dec 12, 2023

Oh my god, the '/wrapped' at the end of the proxy_pass seems to have done the trick.
Thanks a lot!

@BasO12 BasO12 closed this as completed Dec 12, 2023
@aunefyren
Copy link
Owner

No worries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants