summaryrefslogtreecommitdiff
path: root/config-parabola-service-config.PKGBUILD
blob: 7db002b18229b165db8d69f29e497c190ed38a0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
. ${BUILDFILE%/*}/common.sh
pkgver=20180826.1

package() {
preamble
# #### Config

depends+=(
	config-parabola-mgmt-nginx
	config-parabola-mgmt-certbot
	art
)

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
}