1[Unit]
2Description=Iroh relay
3Wants=network-online.target
4After=network-online.target
5
6[Service]
7DynamicUser=true
8Environment=HTTP_PORT=3340
9Environment=METRICS_ADDR=127.0.0.1:9091
10LoadCredential=fullchain.pem:/etc/letsencrypt/live/iroh-relay/fullchain.pem
11LoadCredential=privkey.pem:/etc/letsencrypt/live/iroh-relay/privkey.pem
12ExecStart=/usr/bin/python3 /usr/local/lib/iroh-relay/run.py relay
13Restart=on-failure
14RestartSec=5
15NoNewPrivileges=true
16ProtectSystem=strict
17ProtectHome=true
18PrivateTmp=true
19PrivateDevices=true
20RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
21MemoryMax=256M
22LimitNOFILE=65536
23
24[Install]
25WantedBy=multi-user.target