beyondcode / expose

A beautiful, fully open-source, tunneling service - written in pure PHP
https://expose.dev
MIT License
4.25k stars 261 forks source link

assets show wrong domain + not forwarning using container network names/aliases #303

Open michabbb opened 2 years ago

michabbb commented 2 years ago

hi, i tested the same site with expose and ngrok, both with docker, both forwarding to another container: nginx:80 the laravel website uses:

<link rel="stylesheet" href="{{ asset('css/app.css') }}">

with expose, the browser gets:

<link rel="stylesheet" href="https://172.25.0.2/css/app.css"> <----- WRONG

ngrok:

<link rel="stylesheet" href="http://xxxxxxxxxxx.ngrok.io/css/app.css"> <----- CORRECT

so, i don´t know if this a expose issue or me doing something wrong.

expose cmd:

docker run --init --network=web --rm -it -v ~/.expose/expose.db:/root/.expose beyondcodegmbh/expose-server:latest share http://172.25.0.2

and I guess here´s the problem, because share nginx should work, but doesn´t. with ngrok it does work.

any advice??

thanks.

fahmiegerton commented 2 years ago

Up, I have similar problem