Comments (7)
Yeah, I know. This happens on my current server as well. This is worth a PR :)
from expose.
@mpociot I can make a PR if you want. I was thinking this could be solved in one of the following ways.
In Nginx, i could set the header X-Forwared-Port, and expose could parse that if available. The other option would be to use a setting in the config file.
from expose.
Hm... can't we modify this dynamically based on the port that is used to visit the admin interface?
If I'm on port 80 or 443, we could just omit port 8080
from expose.
That might work. I'm just not sure how that works. Technically the server is still running on 8080 internally. Does PHP set its $_SERVER variables based on the proxied request?
from expose.
You should be able to fix this by looking at x-forwarded-port check if it doesn't match the internal server, for instance an SSL proxy will give 443 while the server itself is on 8080.
from expose.
I think i found where the problem is:
What's is happening is that we're setting the trusted proxy to the socket remote ip, which is different from what's is being checked on isSecure()
method, which is server->get('REMOTE_ADDR')
.
I will try to play with that when i have a chance....
from expose.
This information is available in the $connectionInfo object when the first connection is made. Isn't it better to store this in the connection storage and echo it back later instead of deriving it from the admin dashboard session?
from expose.
Related Issues (20)
- Trying to read .env files? HOT 5
- Delete Account (GDPR) HOT 2
- Cors error with Laravel inertia requests HOT 2
- Expose and Magento 2 HOT 1
- Expose crashes with asset helper in email
- App version HOT 6
- sail share: the link only shows the key, not the full URL HOT 2
- bug: sub domain generator never triggered with `share` command
- bug: sail share does not give a valid link HOT 3
- Public HTTP redirects to HTTPS HOT 1
- Can I somehow "bind" a subdomain for a specific user?
- Error while reading .env file in windows 11
- Composer plugins have been disabled for safety in this non-interactive session when building Docker image HOT 1
- Recommended specs for self hosted?
- Extra managed regions (e.g. Africa) HOT 1
- Set TCP Port range in Docker
- Client > Configuration page does not work
- Could not connect to the server. Connection to tls://us-1.sharedwithexpose.com:443 failed during TLS handshake: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number HOT 7
- Asset URLs Contain Incorrect Port in Laravel Sail Environment with Expose Reverse Proxy HOT 1
- Docker
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 expose.