mdshack / shotshare

Open source image sharing application
https://demo.shotshare.dev/
MIT License
133 stars 8 forks source link

[Bug] All resources are linked using hostname localhost instead of HOST or $host #17

Closed EmberHeartshine closed 8 months ago

EmberHeartshine commented 8 months ago

I followed the directions in README.md, setting up a basic http server (no SSL yet) on a VPS on port 2000 (I'm planning to reverse proxy via nginx on 80 once it's working). When I load the site up in my browser, I'm met with a blank page and the source has such delightful snippets as

const Ziggy = {"url":"http:\\/localhost:2000","port":2000,

and

<link rel="preload" as="style" href="[http://localhost:2000/build/assets/app-74558acf.css](view-source:http://localhost:2000/build/assets/app-74558acf.css)" />

The command I used to start the Docker container is exactly as written in README.md, except with -p 2000:2000 -e HOST=":2000" replacing -p 80:80 -e HOST=":80"

I tried setting HOST to the FQDN I'm using, but that just results in the site timing out.

EmberHeartshine commented 8 months ago

Disregard, I had a typo in my Docker start line.