Add persistent onion key backup and restore, improve startup resilience, and flesh out the major site verticals with richer navigation, search coverage, and operator documentation. Made-with: Cursor
20 lines
563 B
Desktop File
20 lines
563 B
Desktop File
[Unit]
|
|
Description=CyberLux Next.js (binds 127.0.0.1:3000 for nginx/Tor)
|
|
After=network-online.target tor.service nginx.service
|
|
Wants=network-online.target tor.service nginx.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
# Use the account that owns the repo and ran ./start.sh (not root).
|
|
# This unit only starts Next.js; Tor/nginx are expected to be configured already.
|
|
User=REPLACE_ME
|
|
Group=REPLACE_ME
|
|
WorkingDirectory=/path/to/cyberlux
|
|
Environment=NODE_ENV=production
|
|
ExecStart=/usr/bin/npm run start:onion
|
|
Restart=on-failure
|
|
RestartSec=8
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|