(no title)
macns | 3 years ago
> The proxy is extremely lightweight. An inexpensive and tiny VPS can easily handle hundreds of concurrent users. Here’s how to make it work:
SSH into the server.
Install Docker, Docker Compose, and git:
I'm sorry but installing Docker on a tiny VPS last time I checked wasn't any light at all.
tecleandor|3 years ago
Anyway, the proxy is just an nginx with a custom config file. You can check that file and just add it yourself to an nginx you manage, probably with little changes.
https://github.com/signalapp/Signal-TLS-Proxy/blob/main/data...
e12e|3 years ago
https://github.com/signalapp/Signal-TLS-Proxy/blob/main/ngin...
Vs
https://github.com/nginxinc/docker-nginx
For one, this is 5 versions behind (1.18 vs 1.23).
In general seems caddy or haproxy might be a better fit - but nginx is a perfectly fine choice I suppose.
sooyoo|3 years ago
Providing a statically linked binary is even simpler, without all that extra complexity that comes with docker.
Caligatio|3 years ago
I didn't look at the image size but you might be paying a ~100 MB storage penalty to bundle dependencies.
pooper|3 years ago
It won't be rootless in this case as far as I know because you will need privileged ports 80 and 443 but good habit in general.
metadat|3 years ago
On beefcake supreme machines it's just usually not significant enough to worry about, because the perceived benefits outweigh the downsides.
killingtime74|3 years ago
masklinn|3 years ago
- if you use docker nat, it about doubles connection time, if you only have extremely short connections this can be quite visible.
- If you need FS access, this can come at a high cost depending on your usage pattern, docker’s layered FS is not cheap.
- Finally Docker enables features which don’t come for free and which you may not be enabling separately e.g. seccomp (this can result in a 15+% performance hit in the worst case)
kitd|3 years ago
tsujamin|3 years ago
could it be done leaner? sure
is it worth it if it raises the barrier of entry of getting people to run the proxy? doubtful
hosteur|3 years ago
Bayart|3 years ago
Containers are more consistent and have less side effects than packages.
> I'm sorry but installing Docker on a tiny VPS last time I checked wasn't any light at all.
There's very little overhead and it takes a one liner[1] to install it.
[1]: curl -sSL https://get.docker.com/ | sh
tomohawk|3 years ago
cpach|3 years ago
peppermint_tea|3 years ago
toomuchtodo|3 years ago
7v3x3n3sem9vv|3 years ago
- Single core 1GHz CPU - 640 MB RAM - 10 GB storage ( default size )
I'd say docker is pretty light.