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

Proxy via nginx to path doesn't work #2367

Open
jzielke84 opened this issue Sep 2, 2024 · 0 comments
Open

Proxy via nginx to path doesn't work #2367

jzielke84 opened this issue Sep 2, 2024 · 0 comments

Comments

@jzielke84
Copy link

jzielke84 commented Sep 2, 2024

Describe the bug

When setting SITE_URL to something like https://myhost.domain.com/infisical the gui still tries to load ressources from https://myhost.domain.com e.g. https://myhost.domain.com/images/loading/loading.gif.

My nginx is passing everything to http://localhost:3000 (that's where infisical runs):

      location /infisical {
            proxy_pass http://localhost:3000;
            proxy_redirect off;
            proxy_set_header Host $http_host;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Real-IP $remote_addr;
        expires -1;
      }

To Reproduce

Steps to reproduce the behavior:

  1. Install infisical using docker
  2. Install nginx reverse proxy
  3. Set SITE_URL

Expected behavior

Access infisical by subdirectory. Also expect some kind of documentation for using reverse proxies. No info on custom headers (if needed) or anything else.

@jzielke84 jzielke84 changed the title Proxy via nginx to path doens't work Proxy via nginx to path doesn't work Sep 2, 2024
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

1 participant