Comments (7)
Thank you, I check again :)
from linkstack-docker.
Ah so you are deciding depending on the inbound request? Isn't that going to cause an issue with every reverse proxy unless you use HTTPS between the reverse proxy and LinkStack, no? Or may be I misunderstood.
If that's the case, with your answer I am assuming that this is not the first time you see the issue. I am assuming that you have a reason not to use relative path (which would solve the issue already). So one easy solution is to set the links to start with //
. If you do this, the browser itself is going to decide whether to use HTTP or HTTPS, so even if Linkstack is served with
User -> HTTPS -> Proxy -> HTTP -> LinkStack
Then the browser will simply use HTTPS to request the files (and the proxy will translate to HTTP)
Something like
<script src="//mydomain.com/myfile.js"
Doc here: http://www.ietf.org/rfc/rfc3986.txt
from linkstack-docker.
This error is widely documented here.
Please use HTTPS for your reverse proxy, not HTTP as stated in the docs.
You can try to turn on force HTTPS in your config and see if that fixes it.
from linkstack-docker.
@JulianPrieber they are using HTTPS in the reverse proxy, but are getting "mixed content" errors because linkstack continues to send HTTP files over HTTPS.
I am the dev of the reverse proxy they are using, how does linkstack decides what protocol to use? May be the proxy is not sending a header that linkstack expects?
from linkstack-docker.
LinkStack doesn't really 'decide' on what protocol to use. It simply responds in whatever protocol it's accessed with.
If you access the page over something like proxy_pass http://127.0.0.1:80;
all URLs will be generated as HTTP.
from linkstack-docker.
That's right.
Relative paths aren't currently viable for us. Maybe in the future we can work something out, but as of now we have to let the user use this specific setup to avoid mixed content errors.
from linkstack-docker.
Note that starting with // are still absolute path, but they will fix your issue for good with mixed contents
from linkstack-docker.
Related Issues (20)
- `Spatie\Backup\Events\BackupHasFailed` HOT 2
- LinkStack has problems with links as soon as 'custom locations' are specified in the NGINX reverse proxy HOT 15
- Resend Verification email loop HOT 7
- Number of Links in Userlist HOT 1
- Multiple Pages Per User [Feature Request] HOT 1
- SSL Certificates HOT 2
- Permission denied on httpd.conf on Startup HOT 5
- [Sun Jan 07 13:43:21.961240 2024] [httpd.conf] ::1 - - "GET / HTTP/1.0" 400 450 "-" "-" HOT 1
- htdocs directory not populating with persistent volume HOT 10
- cant deploy HOT 11
- Update image HOT 1
- [SUGGESTION] A few suggestions for an upcoming update
- Email Verification Error with inbuilt smtp server (invalid signature) HOT 1
- Unwanted Redirection HOT 1
- ErrorException when clicking on email: Attempt to read property "link" on null HOT 2
- Setup Linkstack to different port (no 80 or 443) HOT 1
- Error while Update HOT 1
- Unable to Edit Links HOT 5
- Cannot get WebSockets to work behind Nginx HOT 14
- Unable to add links HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linkstack-docker.