File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ Example systemd files to run iroh gateway.
2+
3+ Adapt directories and users as needed.
Original file line number Diff line number Diff line change 1+ [Unit]
2+ Description =Iroh Gateway Service Https
3+ After =network.target
4+
5+ [Service]
6+ ExecStart =/root/bin/iroh-gateway \
7+ --addr 0.0.0.0:443 \ # listen on all interfaces at port 443
8+ --cert-mode lets-encrypt \ # lets-encrypt production mode
9+ --hostname myhostname.org \ # public hostname. you can have multiple
10+ --contact admin@mycompany.org \ # admin email for letsencrypt
11+ --cert-path ./letsencrypt \ # work dir for letsencrypt, relative to work dir
12+ --default-node <blob ticket or node ticket>
13+ WorkingDirectory =/root/services/iroh-gateway
14+ Restart =always
15+ User =root
16+ Group =root
17+ Environment ="RUST_LOG=info"
18+
19+ [Install]
20+ WantedBy =multi-user.target
Original file line number Diff line number Diff line change 1+ [Unit]
2+ Description =Iroh Gateway Service
3+ After =network.target
4+
5+ [Service]
6+ ExecStart =/root/bin/iroh-gateway \
7+ --addr 0.0.0.0:8080 \ # listen on all interfaces, port 8080
8+ --default-node <blob ticket or node ticket>
9+ WorkingDirectory =/root/services/iroh-gateway
10+ Restart =always
11+ User =root
12+ Group =root
13+ Environment ="RUST_LOG=info"
14+
15+ [Install]
16+ WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments