Release 0.1.49: self-hosted maps and consented cloud location history
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=ZhaoVision built-in vector basemap
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=zhaovision
|
||||
Group=zhaovision
|
||||
ExecStart=/opt/zhaovision/tools/pmtiles serve /var/lib/zhaovision/maps --interface=127.0.0.1 --port=8841 --cache-size=32
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
Environment=GOMEMLIMIT=160MiB
|
||||
MemoryMax=256M
|
||||
CPUQuota=50%
|
||||
TasksMax=32
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectHome=true
|
||||
ProtectSystem=strict
|
||||
ReadOnlyPaths=/var/lib/zhaovision/maps
|
||||
UMask=0077
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user