diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-11 21:41:07 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-11 21:41:07 +0200 |
commit | 5badca08ae8f40ed78e30032c0b6a08a349ab96c (patch) | |
tree | 0a6e7c1714fbe9d93e66b877dfc419f34a5faf29 /apks/cerrado | |
parent | 506249ae1f0e2819b3decf096186294bed7a1fd4 (diff) | |
download | apkbuilds-5badca08ae8f40ed78e30032c0b6a08a349ab96c.tar.gz apkbuilds-5badca08ae8f40ed78e30032c0b6a08a349ab96c.tar.bz2 apkbuilds-5badca08ae8f40ed78e30032c0b6a08a349ab96c.zip |
feat: Add caddyfile
Diffstat (limited to 'apks/cerrado')
-rw-r--r-- | apks/cerrado/APKBUILD | 20 | ||||
-rw-r--r-- | apks/cerrado/cerrado.caddyfile | 3 |
2 files changed, 21 insertions, 2 deletions
diff --git a/apks/cerrado/APKBUILD b/apks/cerrado/APKBUILD index 89b62af..e13368e 100644 --- a/apks/cerrado/APKBUILD +++ b/apks/cerrado/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Gabriel A. Giovanini <mail@gabrielgio.me> pkgname=cerrado pkgver=v0.0.2 -pkgrel=0 +pkgrel=1 pkgdesc="Self host single user forge" url="https://git.gabrielgio.me/apkbuilds" arch="x86_64" @@ -12,12 +12,16 @@ makedepends=" qtc " install="$pkgname.pre-install" -subpackages="$pkgname-openrc" +subpackages=" + $pkgname-openrc + $pkgname-caddy:_caddy:noarch +" source=" $pkgname-$pkgver.tar.gz::https://git.gabrielgio.me/$pkgname/snapshot/$pkgname-$pkgver.tar.gz $pkgname.scfg $pkgname.confd $pkgname.initd + $pkgname.caddyfile " builddir="$srcdir/$pkgname-$pkgver" @@ -45,9 +49,21 @@ package() { install -Dm644 "$srcdir"/"$pkgname".confd "$pkgdir"/etc/conf.d/cerrado } + +_caddy() { + depends="caddy jnfilter" + pkgdesc="caddy configuration for $pkgname" + + mkdir -p "$subpkgdir"/etc/caddy/sites/ + + install -Dm644 "$srcdir"/"$package"/"$pkgname".caddyfile \ + "$subpkgdir"/etc/caddy/sites/"$pkgname".caddyfile +} + sha512sums=" 6d227f0f548e21d58d23f333ad549f3afec0d66a8700caefd35de1e15e1748e2b537925566bbeadb22f66608c847ff2845b40dd22be5d9ec5bc5104984a72dd2 cerrado-v0.0.2.tar.gz 836ffc390b513b8da83c3ab992a485cd58a665149bffe7243cb34a1d137318f39df6b1b3c7c5e27211e111dc46af93bf357a92b84b53ce093d2db67695c3128f cerrado.scfg 68a44e420c72d0eace0ccd50e7d883c9e155f0ede4a399bf7e257a92a17a983b2bfaded7aa390bb3043301d32092cbb3609070578da762422bf78fae2e9c1adf cerrado.confd fb04232b187bad5522e93ee371dd0c86b99c468d81a78c5e397279501d91cc96f4a44cbd6156312a09f185a1780974b97a17fce257d445a0abbfcd9cac9f11f0 cerrado.initd +aeb63e9f57251bd45af6f41a0f3358a4f26b85122588a0cf715c5e84e6e708724fc80f02789160934c4fb665615d8149396c1b0f3b99e7921c4f0e4d4b6bf322 cerrado.caddyfile " diff --git a/apks/cerrado/cerrado.caddyfile b/apks/cerrado/cerrado.caddyfile new file mode 100644 index 0000000..384b463 --- /dev/null +++ b/apks/cerrado/cerrado.caddyfile @@ -0,0 +1,3 @@ +beta.gabrielgio.me { + reverse_proxy unix//run/cerrado/cerrado.sock +} |