Harden onion boot flow and deepen site surfaces
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
This commit is contained in:
19
scripts/cyberlux.service
Normal file
19
scripts/cyberlux.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user