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

Http links requested when visiting a https page #562

Open
kloknibor opened this issue Jan 30, 2024 · 3 comments
Open

Http links requested when visiting a https page #562

kloknibor opened this issue Jan 30, 2024 · 3 comments

Comments

@kloknibor
Copy link

Setup information

docker-compose

Describe the bug
image

To reproduce
Steps to reproduce the behavior:

  1. Go to client portal
  2. Check console
  3. See error

Expected behavior
The client portal to properly load

Screenshots/logs
image

No special errors```

**Docker/Kubernetes/Helm**:
- Output of `docker version`:

Docker version 25.0.1, build 29cf629

<!-- Additional info if using helm on k8s, add the info below -->
<!-- Delete this block if not applicable -->
- Output of `helm version`:

(paste your output here)

- Output of `kubectl version`:

(paste your output here)

<!-- End Additional info if using helm on k8s -->

**Additional context**
I am using an Apache reverse proxy which uses SSL to reach the internal Invoice ninja server. So : Public IP --> SSL --> Reverse proxy --> Traffic without SSL --> Invoice ninja install.

I am also using the react interface (and don't know hot to switch back in docker). I woudl expect if I visit a https link all requested links are also https, this is not the case. Enabling require https makes the installation not accesable.
@ryangurn
Copy link

ryangurn commented Feb 2, 2024

What is in your env file?

Do you have APP_URL=http://in.localhost:8003 set like the example? You may need to update this to be https...

@chris-cartwright
Copy link

chris-cartwright commented Sep 17, 2024

I'm seeing the same issue and have https specified for my protocol in APP_URL.

I have REQUIRE_HTTPS set to false in order to run behind a proxy that handles TLS termination.

image

Edit: Settings > Client Portal > Domain URL is also showing the correct protocol.

@chris-cartwright
Copy link

Following the advice in this StackOverflow post worked for me: https://stackoverflow.com/a/65691937.

Can an option be added to call URL::forceScheme('https') within boot? I'm patching the file during build at the moment.

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