[Unit] Description=DECNET Web Dashboard Service Documentation=https://git.resacachile.cl/anti/DECNET/wiki/Web-Dashboard After=network-online.target decnet-api.service Wants=network-online.target [Service] Type=simple User=decnet Group=decnet WorkingDirectory={{ install_dir }} EnvironmentFile=-{{ install_dir }}/.env.local ExecStart={{ install_dir }}/venv/bin/decnet web # Uncomment if you bind the dashboard to a privileged port (80/443): # CapabilityBoundingSet=CAP_NET_BIND_SERVICE # AmbientCapabilities=CAP_NET_BIND_SERVICE CapabilityBoundingSet= AmbientCapabilities= # Security Hardening NoNewPrivileges=yes ProtectSystem=full ProtectHome=read-only PrivateTmp=yes ProtectKernelTunables=yes ProtectKernelModules=yes ProtectControlGroups=yes RestrictSUIDSGID=yes LockPersonality=yes ReadWritePaths={{ install_dir }} /var/log/decnet ReadOnlyPaths=/etc/decnet Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target