feat: add backend, admin console and live monitoring

Integrate tunasync management, SQLite authentication and content settings, real monitoring and per-repository pull speeds. Add Chinese-only announcements and mirror help, editable related links, admin layout updates, deployment tools and tests.
This commit is contained in:
2026-11-01 18:04:01 +08:00
parent addadd7d15
commit f8cef413d6
57 changed files with 4222 additions and 101 deletions
+25
View File
@@ -0,0 +1,25 @@
[Unit]
Description=MirrorOUC restricted tunasync configuration writer
After=tunasync-manager.service
[Service]
ExecStart=/usr/bin/python3 /usr/local/lib/mirrorouc/config-helper.py
Restart=on-failure
RestartSec=5
RuntimeDirectory=mirrorouc-config
RuntimeDirectoryMode=0755
StateDirectory=mirrorouc-config
StateDirectoryMode=0700
UMask=0077
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/etc/tunasync /var/lib/mirrorouc-config /run/mirrorouc-config
ProtectKernelTunables=true
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictAddressFamilies=AF_UNIX AF_INET
[Install]
WantedBy=multi-user.target