Initial local translation API with persistent projects and batch jobs

This commit is contained in:
mrleo1nid committed 2026-10-23 13:31:13 +03:00
commit 13492929c6
21 files changed
+1624

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
[Unit]
Description=Local game translation API
After=network.target
[Service]
Type=simple
User=translator
Group=translator
WorkingDirectory=/opt/local-translator
EnvironmentFile=-/etc/local-translator.env
ExecStart=/opt/local-translator/.venv/bin/python -m local_translator --config /opt/local-translator/config.toml
Restart=on-failure
RestartSec=5
TimeoutStopSec=30
UMask=0077
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/local-translator/data
[Install]
WantedBy=multi-user.target