-
Notifications
You must be signed in to change notification settings - Fork 12
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
how to multiple domains? (localhost, IP, domain) #13
Comments
Hi ! Thanks a lot for opening the issue and providing all those details. I'm not entirely sure that Erin supports multiple domains at once, but I think we could try still. May I suggest that, in the "PUBLIC_URL" variable, you set only ":3333" and see if that works? I have checked the documentation of Caddy (the server that Erin is built on top of), and I think that ":3333" is enough to instruct the server to accept all the requests, so long as they come on port 3333, regardless of the hostname. Let me know if that works, and else, I think I can adjust the code for your use case. Side note : I haven't used Traefik in a long time, but I think you should also update your rule with an "OR" condition to accept different hosts, no? Like |
Hi @will-moss, thanks for your response With ":3333" now I can access with Now when I access I think its because of the following script on the index.html page: <script>
window.PUBLIC_URL = ":3333",
window.USE_SECRET = false,
"https:" === window.location.protocol && (window.PUBLIC_URL = window.PUBLIC_URL.replace("http:", "https:")),
window.AUTOPLAY_ENABLED = true,
window.PROGRESS_BAR_POSITION = "bottom"
</script> It is possible to change the index.html template from |
## [1.12.5](v1.12.4...v1.12.5) (2024-12-26) ### Bug Fixes * **client:** changed the way the public url is built on the client to make it more flexible ([e48813e](e48813e)), closes [#13](#13)
Alright, thanks a lot for reporting back, and I'm glad this works better already. I have just published a new release that should (hopefully) fix everything. You can pull the latest image and tell me if that solves it! PS : I used |
Hi @will-moss, thank you very much for the update!! its working perfectly :D you make good apps, I just discovered the isaiah project and Im going to add it to my homelab :D thanks a lot!!! |
Hi,
Is is possible to have multiple domains? for example I want to be able to access erin in 3 ways:
localhost
tiktok.homelab.com
)but it seems like I only can choose one
Right now I want another people to access erin in my local network, so I had to set the env var
PUBLIC_URL
tohttp://192.168.100.10:3333
but now I cannot access vialocalhost:3333
But I want to access via
tiktok.homelab.com
but only on my LAN, so I added traefik proxy to help with that but it doesnt work :(I have 10 applications via docker compose and I expose them via Traefik and a local https certificate (thanks to mkcert.dev), I only add a few labels and it works OK on all applications except erin, this is my current
docker-compose.yaml
fileThe text was updated successfully, but these errors were encountered: