mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-09 22:14:59 +00:00
Add example unit file for running pict-rs
This commit is contained in:
parent
e10cb1401d
commit
b8f9c00d30
1 changed files with 14 additions and 0 deletions
14
systemd/pict-rs.service
Normal file
14
systemd/pict-rs.service
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
[Unit]
|
||||||
|
Description=A simple image host
|
||||||
|
Documentation=https://git.asonix.dog/asonix/pict-rs
|
||||||
|
After=network-online.target firewalld.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
Environment="PICTRS__SERVER__ADDRESS=127.0.0.1:8080"
|
||||||
|
Environment="PICTRS__TRACING__LOGGING__TARGETS=warn"
|
||||||
|
Environment="PICTRS__MEDIA__FORMAT=avif"
|
||||||
|
Environment="PICTRS__REPO__PATH=/opt/pict-rs/sled"
|
||||||
|
Environment="PICTRS__STORE__PATH=/opt/pict-rs/files"
|
||||||
|
ExecStart=/usr/local/bin/pict-rs run
|
||||||
|
Restart=on-failure
|
Loading…
Reference in a new issue