1diff --git a/genpass/APKBUILD b/genpass/APKBUILD
2index a9f99f05a6445b9b07c3ddd01926aba29f269929..3c741243c40c6c2cad5ad79f9c5165e792b8e32c 100644
3--- a/genpass/APKBUILD
4+++ b/genpass/APKBUILD
5@@ -18,7 +18,12 @@ openssl-dev
6 bzip2-dev
7 "
8 builddir="$srcdir/$pkgname-$pkgver/"
9-source="https://artifacts.gabrielgio.me/"$pkgname"/"$pkgname"-"$pkgver".tar.gz"
10+subpackages="$pkgname-nginx:_nginx"
11+
12+source="
13+ https://artifacts.gabrielgio.me/$pkgname/$pkgname-$pkgver.tar.gz
14+ $pkgname.nginx.conf
15+"
16
17 build() {
18 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --quiet -y
19@@ -31,6 +36,13 @@ check() {
20 make test
21 }
22
23+_nginx() {
24+ depends="nginx"
25+ pkgdesc="nginx configuration for $pkgname"
26+ install -Dm644 "$srcdir"/"$package"/"$pkgname".nginx.conf \
27+ "$subpkgdir"/etc/nginx/http.d/"$pkgname".nginx.conf
28+}
29+
30 package() {
31 mkdir -p "$pkgdir"/var/www
32 cp -dr public "$pkgdir"/var/www/"$pkgname"
33@@ -38,4 +50,5 @@ }
34
35 sha512sums="
36 1b3079701557f97a0380dcfb4d67e7b96fb340a1c5f9b822a718a4c68b638ad09ba33afe33babc8bd4454390d128ed0b55bb1cd7aa513ced90fe443cddf022d1 genpass-0.1.0.tar.gz
37+6e6b9d80b26006efd5b6e368bd3925425b2080bf88dca38c91a9dd8a1db2b3774b2cb8ecba67ac01d2c822f0ad75106d6e103cc3371076f3f40232dd38b57fd4 genpass.nginx.conf
38 "
39diff --git a/genpass/genpass.nginx.conf b/genpass/genpass.nginx.conf
40new file mode 100644
41index 0000000000000000000000000000000000000000..a11fd3b5837c89f2a138fe85a9a1d1a3ea1035cc
42--- /dev/null
43+++ b/genpass/genpass.nginx.conf
44@@ -0,0 +1,4 @@
45+server {
46+ server_name genpass.lan;
47+ root /var/www/genpass;
48+}