deploy assets

This commit is contained in:
2026-04-18 19:08:46 -06:00
parent 24e62605b0
commit 6457991977
4 changed files with 37 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
[Unit]
Description=[refresh pkgstash db files]
[Service]
Type=oneshot
User=pkgstash
ExecStart=/usr/bin/curl -s -X POST -H "Authorization: Bearer <token>" http://localhost:8090/api/refresh
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=Refresh pkgstash db files
[Timer]
OnCalendar=*-*-* 02:00:00
Persistent=true
[Install]
WantedBy=timers.target
+15
View File
@@ -0,0 +1,15 @@
[Unit]
Description=Sparse caching arch linux mirror
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/bin/pkgstash
User=pkgstash
Group=pkgstash
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
+6
View File
@@ -0,0 +1,6 @@
cache_root = "/home/ewpt3ch/dev/pacman-cache-server/tmprepo"
mirror_url = "https://us.mirrors.cicku.me/archlinux/"
port = "8090"
[auth]
token = "FakeToken"