VYBECODEDDDDDDDDD

This commit is contained in:
Anaïs Saraiva
2026-08-15 00:20:45 +02:00
parent 1a2c8aaf7c
commit 5f201cf725
23 changed files with 2263 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
[Unit]
Description=Filehost private file hosting service
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=filehost
Group=filehost
WorkingDirectory=/opt/filehost
EnvironmentFile=/opt/filehost/.env
ExecStart=/usr/local/bin/bun run src/server.ts
Restart=on-failure
RestartSec=3
TimeoutStopSec=30
# Security hardening
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=full
ProtectHome=true
ReadWritePaths=/opt/filehost/storage
[Install]
WantedBy=multi-user.target