blob: de7e211ef41b1f273b646d9a2b90f8f01d296b0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
[Unit]
Description=9Router AI gateway
Documentation=https://github.com/decolua/9router
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
Environment=HOSTNAME=127.0.0.1
EnvironmentFile=-%h/.9router/.env
ExecStart=/usr/bin/9router --no-browser --host 127.0.0.1
Restart=on-failure
RestartSec=5
WorkingDirectory=%h
# Security hardening
ProtectSystem=strict
ProtectHome=read-only
ReadWritePaths=%h/.9router /tmp
NoNewPrivileges=true
[Install]
WantedBy=default.target
|