Port 8080 shouldn't be exposed publicly #117
Labels
No labels
Blocked
Existing Service
Infrastructure Issue
Refactor
Security Hardening
Security Issue
Service Idea
Service Removal
Upgrade service
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: data.coop/ansible#117
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
a03263b1f5
nginx-proxy should be able to communicate with riot through the
external_services
Docker network. If that's not the case, the port exposure should be specified assuch that it can't be accessed from outside the server.
Ping: @reynir
expose
doesn't expose the port publicly. It's like writingEXPOSE 8080
in the Dockerfile. It is not the same asports
which publicly exposes the port(s) on the host.It can also be confirmed on our host:
Ah, in that case I learned something new today :D
But how come nginx can't infer that from
VIRTUAL_PORT
? Seems a bit weird.The EXPOSE is necessary because it tells docker (and thus nginx-proxy) what ports the container is listening on. Nginx-proxy will otherwise treat the container as being down resulting in annoying 503s :(
See also https://github.com/nginx-proxy/nginx-proxy/issues/1132
It looks like it should have been fixed by https://github.com/nginx-proxy/nginx-proxy/pull/1609, no?
Maybe. That issue was not exactly about this, but it's there I learned about nginx-proxy and its expectations about
EXPOSE
.And besides, adding
expose: 8080
made element.data.coop work again...If it works, it works.
Ah, our nginx-proxy image is old. We probably don't have that change, then.