summaryrefslogtreecommitdiff
path: root/config-service-config.PKGBUILD
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-11 08:17:00 +0000
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-11 08:17:00 +0000
commite64ef24ed35f28fb2985584f0ca07b51faf0ef64 (patch)
tree6415132329e77b9af641d531b33efda6603b38c7 /config-service-config.PKGBUILD
parente6ab8cf5eb8cc9448af085b2bfc813aec614c22c (diff)
fixity
Diffstat (limited to 'config-service-config.PKGBUILD')
-rw-r--r--config-service-config.PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/config-service-config.PKGBUILD b/config-service-config.PKGBUILD
new file mode 100644
index 0000000..d9d91f9
--- /dev/null
+++ b/config-service-config.PKGBUILD
@@ -0,0 +1,30 @@
+. ${BUILDFILE%/*}/common.sh
+pkgver=20161111.3
+
+package() {
+preamble
+
+depends+=(nginx config-mgmt-certbot)
+
+add-file -m755 etc/ssl/misc/certbot-get.d/10-config <<EOF
+#!/bin/bash
+echo config.{parabola.nu,parabolagnulinux.org}
+EOF
+
+add-file etc/nginx/sites/server-config_parabola_nu.conf <<EOF
+# -*- Mode: nginx; nginx-indent-level: 8; indent-tabs-mode: t -*-
+
+server {
+ server_name config.parabola.nu;
+ listen 443 ssl http2;
+ listen [::]:443 ssl http2;
+
+ error_log /var/log/nginx/nginx.http.config_parabola_nu.error.log error;
+ access_log /var/log/nginx/nginx.http.config_parabola_nu.access.log specific;
+
+ autoindex on;
+}
+EOF
+
+postamble
+}