aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-09-30 20:11:56 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-09-30 20:11:56 +0200
commit9fd9849a86aa4de51ca49e62de8d6cfb6c8a6cc7 (patch)
tree778374db28a376a700f20982b25d54a4200721e4
parentcc9e4011f8a8514431d1685b0d723e186b4b24c9 (diff)
downloadapkbuilds-9fd9849a86aa4de51ca49e62de8d6cfb6c8a6cc7.tar.gz
apkbuilds-9fd9849a86aa4de51ca49e62de8d6cfb6c8a6cc7.tar.bz2
apkbuilds-9fd9849a86aa4de51ca49e62de8d6cfb6c8a6cc7.zip
feat: Add entry point caddy file
-rw-r--r--apks/artifacts/APKBUILD27
-rw-r--r--apks/artifacts/artifacts.caddyfile4
2 files changed, 31 insertions, 0 deletions
diff --git a/apks/artifacts/APKBUILD b/apks/artifacts/APKBUILD
new file mode 100644
index 0000000..c5c5d71
--- /dev/null
+++ b/apks/artifacts/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
+pkgname=artifacts
+pkgver=0.0.0
+pkgrel=0
+pkgdesc="Meta package for artifacts.gabrielgio.me caddy entry file"
+url="https://artifacts.gabrielgio.me"
+arch="noarch"
+license="MIT"
+options="!check" # this can't be tested
+builddir="$srcdir"
+depends="caddy"
+source=""$pkgname".caddyfile"
+
+build() {
+ echo "skipping build"
+}
+
+package() {
+ pkgdesc="caddy configuration for $pkgname"
+ mkdir -p "$pkgdir"/etc/caddy/sites/
+ install -Dm644 "$srcdir"/"$pkgname".caddyfile \
+ "$pkgdir"/etc/caddy/sites/"$pkgname".caddyfile
+}
+
+sha512sums="
+b062efa2977a6cbf08827b52014f059631a3b9daa5f53cdc36047af7fda4b071027629579937e4b39e206c211b19f96a8fc6ae9773836b73e612f86645dd4c93 artifacts.caddyfile
+"
diff --git a/apks/artifacts/artifacts.caddyfile b/apks/artifacts/artifacts.caddyfile
new file mode 100644
index 0000000..286c295
--- /dev/null
+++ b/apks/artifacts/artifacts.caddyfile
@@ -0,0 +1,4 @@
+artifacts.gabrielgio.me {
+ root * /var/www/artifacts.gabrielgio.me
+ file_server browse
+}