Files
homelab/config/systemd/copyparty.service
Arpad Krejczinger 4c715e6028 Add copyparty file server with full integration
- Configure copyparty file server with user authentication
- Set up multi-volume structure (shared, documents, music, videos, private)
- Create systemd service for automatic startup
- Add Nginx reverse proxy integration on /cloud/ path
- Update documentation with complete setup and management guide
- Mark Gitea and file server tasks as completed in TODO

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-17 18:15:18 +02:00

42 lines
1.0 KiB
Desktop File

# DEPLOYMENT LOCATION: /etc/systemd/system/copyparty.service
# Deploy with: sudo cp config/systemd/copyparty.service /etc/systemd/system/
# Enable with: sudo systemctl daemon-reload && sudo systemctl enable --now copyparty
[Unit]
Description=copyparty file server
After=network.target
[Service]
Type=simple
SyslogIdentifier=copyparty
Environment=PYTHONUNBUFFERED=x
ExecReload=/bin/kill -s USR1 $MAINPID
Restart=always
RestartSec=5
# Run as hoborg user with existing configuration
User=hoborg
Group=hoborg
WorkingDirectory=/home/hoborg
Environment=XDG_CONFIG_HOME=/home/hoborg/.config
# Use copyparty with config file
ExecStart=/usr/bin/copyparty -c /home/hoborg/.config/copyparty/copyparty.conf
# Some basic hardening
MemoryMax=25%
ProtectClock=true
ProtectControlGroups=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
# Allow access to home directories
ProtectHome=false
[Install]
WantedBy=multi-user.target