- Each user gets a Linux + Samba account and home dir at /nas/home/<username>/ - Web UI file browsing scoped to per-user directories - Creating/deleting users from web UI also manages system + Samba accounts - Replaced hardcoded [data] SMB share with [homes] (per-user automatic shares) - Removed hardcoded alexz user from entrypoint — server.js handles all user management - Removed storage quotas from backend and frontend - Existing users get home directories auto-created on startup (migration)
35 lines
897 B
Plaintext
35 lines
897 B
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
user=root
|
|
logfile=/var/log/supervisor/supervisord.log
|
|
pidfile=/var/run/supervisord.pid
|
|
childlogdir=/var/log/supervisor
|
|
|
|
[program:smbd]
|
|
command=/usr/sbin/smbd -F --no-process-group
|
|
autostart=true
|
|
autorestart=true
|
|
priority=10
|
|
stdout_logfile=/var/log/supervisor/smbd-stdout.log
|
|
stderr_logfile=/var/log/supervisor/smbd-stderr.log
|
|
|
|
[program:nmbd]
|
|
command=/usr/sbin/nmbd -F --no-process-group
|
|
autostart=true
|
|
autorestart=true
|
|
priority=10
|
|
stdout_logfile=/var/log/supervisor/nmbd-stdout.log
|
|
stderr_logfile=/var/log/supervisor/nmbd-stderr.log
|
|
|
|
[program:cloudnas]
|
|
command=node /app/server.js
|
|
directory=/app
|
|
autostart=true
|
|
autorestart=true
|
|
priority=20
|
|
environment=PORT="8080",DB_PATH="/config/cloudsync.db",JWT_SECRET="%(ENV_JWT_SECRET)s",SMB_PASSWORD="%(ENV_SMB_PASSWORD)s"
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|