Add nginx conf
This commit is contained in:
parent
7a23e798e5
commit
3b127c157b
2 changed files with 16 additions and 4 deletions
9
PKGBUILD
9
PKGBUILD
|
@ -1,6 +1,6 @@
|
||||||
pkgname=nummi
|
pkgname=nummi
|
||||||
pkgver=0.1.0
|
pkgver=0.1.0
|
||||||
pkgrel=6
|
pkgrel=9
|
||||||
pkgdesc="Web-based accounting interface"
|
pkgdesc="Web-based accounting interface"
|
||||||
arch=("any")
|
arch=("any")
|
||||||
url="https://git.edgarpierre.fr/edpibu/nummi"
|
url="https://git.edgarpierre.fr/edpibu/nummi"
|
||||||
|
@ -20,11 +20,12 @@ source=(
|
||||||
)
|
)
|
||||||
|
|
||||||
package() {
|
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}.service -t "${pkgdir}"/usr/lib/systemd/system/
|
||||||
install -Dm644 ${pkgname}.socket -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}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
|
||||||
install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.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
11
nummi.nginx
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue