First commit. Вайб кодинг сделал сервис v1.0

This commit is contained in:
2026-09-30 22:03:01 +03:00
commit aad200dd82
5 changed files with 966 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
[Unit]
Description=NAS Caddy/dnsmasq web configurator
After=network-online.target caddy.service dnsmasq.service
Wants=network-online.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/nas-config-web
EnvironmentFile=/etc/nas-config-web.env
ExecStart=/opt/nas-config-web/venv/bin/gunicorn --workers 1 --bind 127.0.0.1:8090 --access-logfile - --error-logfile - app:app
Restart=on-failure
RestartSec=3
# The process intentionally needs root because it atomically replaces files in
# /etc and invokes systemctl. Keep it bound to loopback and protect it with Caddy.
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
[Install]
WantedBy=multi-user.target