Skip to content

Commit 0b20a05

Browse files
committed
Add example systemd files
1 parent 0086f77 commit 0b20a05

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

iroh-gateway/systemd/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Example systemd files to run iroh gateway.
2+
3+
Adapt directories and users as needed.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

0 commit comments

Comments
 (0)