This guide was written while setting up an Unbuntu VPS. There may be some differences when setting up a different distro.
Do some basic setup as the root user, which should mainly consist of
upstream tunnel { | |
server 127.0.0.1:3000; | |
} | |
server { | |
listen 80; | |
server_name dev.codeplane.com br.dev.codeplane.com; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; |
#!/bin/bash | |
# Load balance multiple internet connections. Requires iproute2, awk and grep. | |
# (C) 2016 Tobias Girstmair, isticktoit.net, GPLv2 | |
# Also useful: speedometer -l -r eth1 -t eth1 -m $(( 1024 * 1024 * 3 / 2 )) | |
# Not much user error checking is done - only pass working network connections | |
# script needs root to work and at least two interfaces to be useful | |
[ $EUID -eq 0 -a $# -ge 2 ] || { | |
echo "Usage (as root): $0 iface1[:weight1] iface2[:weight2] ..." >&2 |
This is just a dump of some interesting undocumented features of webOS (3.8 specifically, on early 2018 4k LG TV) and other development-related tips.