Open nikil511 opened 4 years ago
Yes, this is how it is currently configured. It only allows traffic in if the host:
header is *.balena-devices.com
OR *.local
OR *.localdomain
OR *.lan
.
As can be seen in the traefik.http.routers.<entrypoint/frontend>.rule
definitions
https://github.com/MatthewCroughan/octobalena/blob/0814becc7cd94c07f60e9160b7029f26a75755e6/docker-compose.yml#L20
https://github.com/MatthewCroughan/octobalena/blob/0814becc7cd94c07f60e9160b7029f26a75755e6/docker-compose.yml#L24
https://github.com/MatthewCroughan/octobalena/blob/0814becc7cd94c07f60e9160b7029f26a75755e6/docker-compose.yml#L28
So, port 80/443 is owned by traefik. Traefik says you only get forwarded/proxied into the octoprint container on port 5000 IF those names match, if not then 404.
If you go to the IP address on port 5000 you will bypass Traefik and get directly through to Octoprint.
works with balena public IP but not with local one. I guess it has to do with traefik settings