From 9fd9849a86aa4de51ca49e62de8d6cfb6c8a6cc7 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Sat, 30 Sep 2023 20:11:56 +0200 Subject: feat: Add entry point caddy file --- apks/artifacts/APKBUILD | 27 +++++++++++++++++++++++++++ apks/artifacts/artifacts.caddyfile | 4 ++++ 2 files changed, 31 insertions(+) create mode 100644 apks/artifacts/APKBUILD create mode 100644 apks/artifacts/artifacts.caddyfile (limited to 'apks') 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 +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 +} -- cgit v1.2.3