Splicer

Awkwardly now with added nginx

Splicer at

At least for the moment, I've got awkwardly.social now sitting behind an nginx proxy. I know I don't need it for pump.io; I've been running Awkwardly without a proxy for as long as Awkwardly has been up. I used JRobb's config as a starting point to make sure that WebSocket proxying would work happily. That link seems to be down, so here's the Wayback archive: https://web.archive.org/web/20160722040135/http://jrobb.org/moving-my-pump-home.html 


This frees me to move other things onto the same Linode and save a few bucks by consolidating my various installations. It doesn't seem to be affecting the site's responsiveness or functions. My load average is reported as a consistent 0.00 and I still have three-quarters of the memory on this Linode free. So far, I don't see any downside.

One small detail: your server is now replying with "nginx/x.y.z" as the Server header instead of the one from pump.io.


You can fix it with the "proxy pass_header Server;" parameter, like in this example by @sazius:


pumpio.readthedocs.io/en/latest/sysadmins-debian.html#setup-nginx-proxying

JanKusanagi at 2017-09-12T23:25:38Z

>> JanKusanagi:

“One small detail: your server is now replying with "nginx/x.y.z" as the Server header instead of the one from pump.io.


I'd noticed that the nginx header was in there but I hadn't thought of it as a problem. I added the directive as suggested and I don't see any mention of nginx any longer.

Splicer at 2017-09-16T19:38:50Z

Yep, now the Server: header states:


pump.io/4.0.0 express/4.15.2 node.js/v4.8.4


=)


JanKusanagi at 2017-09-16T22:57:30Z