[Unit]
Description=EdgeVPN Daemon
After=network.target

[Service]
EnvironmentFile=/etc/systemd/system.conf.d/edgevpn.env
LimitNOFILE=49152
# This source explains why we are using this number
# https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes/a3327deff89d2428d48596ce0e643531f9944f99
ExecStartPre=-/bin/sh -c "sysctl -w net.core.rmem_max=7500000"
ExecStartPre=-/bin/sh -c "sysctl -w net.core.wmem_max=7500000"
ExecStart=/usr/bin/edgevpn
Restart=always

[Install]
WantedBy=multi-user.target
