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

BASE_URL not used everywhere #117

Open
ben-64 opened this issue Oct 18, 2022 · 1 comment
Open

BASE_URL not used everywhere #117

ben-64 opened this issue Oct 18, 2022 · 1 comment

Comments

@ben-64
Copy link

ben-64 commented Oct 18, 2022

Hello,

I have some troubles using send docker image, behind a reverse proxy with this kind of nginx configuration

...
        location /app1/ {
                proxy_set_header  X-Real-IP         $remote_addr;
                proxy_set_header  X-Forwarded-For   $proxy_add_x_forwarded_for;
                proxy_set_header  X-Forwarded-Proto $scheme;
                proxy_set_header  X-Forwarded-Host  $host;

                # pass requests to the proxied host
                proxy_pass http://ip_send/;
                proxy_set_header Host  $host;
                proxy_connect_timeout  30s;
                proxy_read_timeout     120s;
        }
...

Even if I set a BASE_URL to https://realip/app1/, the docker image of send returns a URL of css, manifest and other stuff ignoring the BASE_URL parameter:

...
<link rel="manifest" href="/app.webmanifest">
<link rel="stylesheet" type="text/css" href="/inter.css">
...

The result is a request by the browser to https://realip/inter.css while I would have thought that a request to https://realip/app1/inter.css should have been done.

Am I doing something wrong ?

@ppawiggers
Copy link

I don't think you're doing anything wrong, I have the same issue.

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

2 participants