Зафиксировать рабочий BreathMonitor v1 и сервер

This commit is contained in:
AidarKC
2026-10-25 14:14:27 +03:00
parent 370f4ae94e
commit d5a37d3009
43 changed files with 2490 additions and 1522 deletions
@@ -0,0 +1,4 @@
breathmonitor.shineup.me {
encode zstd gzip
reverse_proxy 127.0.0.1:8090
}
@@ -0,0 +1,22 @@
[Unit]
Description=BreathMonitor lightweight Java server
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=breathmonitor
Group=breathmonitor
WorkingDirectory=/opt/breathmonitor/server
ExecStart=/opt/breathmonitor/server/start.sh
Environment=BREATH_DATA_DIR=/var/lib/breathmonitor
Environment=BREATH_WEB_DIR=/opt/breathmonitor/server/web
Environment=PUBLIC_ORIGIN=https://breathmonitor.shineup.me
Restart=on-failure
RestartSec=5
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/breathmonitor
PrivateTmp=true
[Install]
WantedBy=multi-user.target