Die Dateien wurden geändert und hinzugefügt:
This commit is contained in:
52
backend/systemd/myp-development.service
Normal file
52
backend/systemd/myp-development.service
Normal file
@@ -0,0 +1,52 @@
|
||||
[Unit]
|
||||
Description=MYP Druckerverwaltung Development Server (Port 5000)
|
||||
Documentation=https://github.com/MYP-Druckerverwaltung
|
||||
After=network.target network-online.target
|
||||
Wants=network-online.target
|
||||
Requires=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
WorkingDirectory=%h/Dev/Projektarbeit-MYP/backend
|
||||
|
||||
# Development-App mit HTTP auf Port 5000
|
||||
ExecStart=/usr/bin/python3 setup_development.py --skip-deps --skip-css
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
StartLimitBurst=3
|
||||
StartLimitInterval=300
|
||||
|
||||
# Umgebungsvariablen für Development
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
Environment=FLASK_ENV=development
|
||||
Environment=FLASK_DEBUG=1
|
||||
Environment=FLASK_HOST=127.0.0.1
|
||||
Environment=FLASK_PORT=5000
|
||||
Environment=PYTHONPATH=%h/Dev/Projektarbeit-MYP/backend
|
||||
Environment=LC_ALL=C.UTF-8
|
||||
Environment=LANG=C.UTF-8
|
||||
Environment=DEVELOPMENT_MODE=true
|
||||
Environment=USE_PRODUCTION_CONFIG=false
|
||||
Environment=FLASK_SSL_REQUIRED=false
|
||||
|
||||
# Logging-Konfiguration
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=myp-development
|
||||
|
||||
# Sicherheitseinstellungen (relaxed für Development)
|
||||
NoNewPrivileges=false
|
||||
PrivateTmp=false
|
||||
ProtectSystem=false
|
||||
ProtectHome=false
|
||||
|
||||
# Ressourcen-Limits (großzügig für Development)
|
||||
LimitNOFILE=65536
|
||||
LimitNPROC=4096
|
||||
MemoryHigh=1G
|
||||
MemoryMax=2G
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user