From 3b127c157be8082641da9f91ddff118a4ec88e29 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Sat, 21 May 2022 15:59:21 +0200 Subject: [PATCH] Add nginx conf --- PKGBUILD | 9 +++++---- nummi.nginx | 11 +++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 nummi.nginx diff --git a/PKGBUILD b/PKGBUILD index 144e048..3a0e56e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -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}/{}" \; } diff --git a/nummi.nginx b/nummi.nginx new file mode 100644 index 0000000..561128b --- /dev/null +++ b/nummi.nginx @@ -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; + } +}