Зафиксировать рабочий BreathMonitor v1 и сервер
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user