diff options
Diffstat (limited to 'config-service-projects.PKGBUILD')
-rw-r--r-- | config-service-projects.PKGBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/config-service-projects.PKGBUILD b/config-service-projects.PKGBUILD new file mode 100644 index 0000000..71cd152 --- /dev/null +++ b/config-service-projects.PKGBUILD @@ -0,0 +1,27 @@ +. ${BUILDFILE%/*}/common.sh +pkgver=20160713.1 + +depends=(git cgit uwsgi-plugin-cgi config-uwsgi) + +package() { +cd "$pkgdir" + +add-file -m755 etc/ssl/misc/certbot-get.d/10-projects <<EOF +#!/bin/bash +echo projects.{parabola.nu,parabolagnulinux.org} +EOF + +add-file etc/nginx/sites/server-projects.parabola.nu.conf <<EOF +# -*- Mode: nginx; nginx-indent-level: 8; indent-tabs-mode: t -*- + +server { + server_name projects.parabola.nu; + listen 443 ssl http2; + listen [::]:443 ssl http2; + + location / { return 301 https://git.parabola.nu\$request_uri; } +} +EOF + +backup=($(find "$pkgdir" -type f -printf '%P\n')) +} |