26 lines
665 B
SYSTEMD
26 lines
665 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=tripoli-edge - service interne derrière Caddy pour tripoli.cloud
|
||
|
|
After=network.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=simple
|
||
|
|
User=tripoli
|
||
|
|
Group=tripoli
|
||
|
|
ExecStart=/usr/local/bin/tripoli-edge
|
||
|
|
Restart=on-failure
|
||
|
|
RestartSec=2
|
||
|
|
Environment=RUST_LOG=info
|
||
|
|
Environment=TRIPOLI_EDGE_LISTEN=127.0.0.1:9000,172.17.0.1:9000
|
||
|
|
Environment=TRIPOLI_API_UPSTREAM=127.0.0.1:8081
|
||
|
|
|
||
|
|
# Un utilisateur système dédié, sans shell, plutôt que root : ce service
|
||
|
|
# n'a besoin d'aucun privilège (pas de port <1024, pas d'accès disque
|
||
|
|
# hors ses propres logs via journald).
|
||
|
|
NoNewPrivileges=true
|
||
|
|
ProtectSystem=strict
|
||
|
|
ProtectHome=true
|
||
|
|
PrivateTmp=true
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|