Signal App - Completely open source
The server is open-source so you could host your own server -though that's not very practical due to the client situation (not really a variety of configurable ones, so you'd probably need to change/package/distribute the official).