feat: add wondershaper and update README.md

This commit is contained in:
2022-12-29 15:23:46 +02:00
parent c46aab45e1
commit 6f079d1967
5 changed files with 20 additions and 7 deletions

View File

@ -12,12 +12,16 @@ services:
memlock: -1
oom_score_adj: -700
mem_swappiness: 10
cap_add:
- NET_ADMIN
volumes:
- "./entrypoint.sh:/opt/entrypoint.sh"
- "/opt/uam_data:/root/.uam"
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY}"
command: /bin/sh -c "chmod +x /opt/entrypoint.sh && /opt/entrypoint.sh $${PBKEY} $${NETLIMUP} $${NETLIMDOWN}"
ports:
- "127.0.0.1:17099:17099"
- "4156:4156"
environment:
- PBKEY=${PBKEY?err}
- NETLIMUP=10000
- NETLIMDOWN=18000

View File

@ -1,7 +1,8 @@
#!/bin/sh
cd /tmp
apt update && apt -yq install wget libglib2.0-0 ca-certificates dnsmasq
apt update && apt -yq install wget libglib2.0-0 ca-certificates dnsmasq wondershaper
update-ca-certificates
wondershaper eth0 $2 $3 &
wget https://update.u.is/downloads/uam/linux/uam-latest_amd64.deb
dpkg -i uam-latest_amd64.deb
cd /opt/uam/