Add nginx conf

This commit is contained in:
Edgar P. Burkhart 2022-05-21 15:59:21 +02:00
parent 7a23e798e5
commit 3b127c157b
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 16 additions and 4 deletions

View file

@ -1,6 +1,6 @@
pkgname=nummi
pkgver=0.1.0
pkgrel=6
pkgrel=9
pkgdesc="Web-based accounting interface"
arch=("any")
url="https://git.edgarpierre.fr/edpibu/nummi"
@ -20,11 +20,12 @@ source=(
)
package() {
cd ${pkgname}
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname}/{}" \;
install -Dm644 ${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
install -Dm644 ${pkgname}.socket -t "${pkgdir}"/usr/lib/systemd/system/
install -Dm644 ${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
install -Dm644 ${pkgname}.nginx "${pkgdir}"/etc/nginx/sites-enabled/${pkgname}.conf
cd ${pkgname}/${pkgname}
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname}/{}" \;
}

11
nummi.nginx Normal file
View file

@ -0,0 +1,11 @@
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name nummi.edgarpierre.fr;
location / {
include conf/50-proxy.conf;
proxy_pass http://unix:/run/nummi.socket;
}
}