diff --git a/install.sh b/install.sh index f227f81..9f5507e 100755 --- a/install.sh +++ b/install.sh @@ -49,8 +49,10 @@ elif [ "$unamestr" = 'OpenBSD' ]; then if [ "$network" = 'www' ]; then cat /etc/acme-client.conf srv/openbsd/etc/acme-client.conf > /etc/acme-client.conf sed -i "s/urlo\.li/$domain/g" /etc/acme-client.conf + cat /etc/httpd.conf srv/openbsd/etc/httpd-clear.conf > /etc/httpd.conf + else + cat /etc/httpd.conf srv/openbsd/etc/httpd-dark.conf > /etc/httpd.conf fi - cat /etc/httpd.conf srv/openbsd/etc/httpd.conf > /etc/httpd.conf sed -i "s/urlo\.li/$domain/g" /etc/httpd.conf rcctl restart httpd if [ "$network" = 'www' ]; then diff --git a/srv/openbsd/etc/httpd.conf b/srv/openbsd/etc/httpd-clear.conf similarity index 100% rename from srv/openbsd/etc/httpd.conf rename to srv/openbsd/etc/httpd-clear.conf diff --git a/srv/openbsd/etc/httpd-dark.conf b/srv/openbsd/etc/httpd-dark.conf new file mode 100644 index 0000000..fa16d79 --- /dev/null +++ b/srv/openbsd/etc/httpd-dark.conf @@ -0,0 +1,8 @@ + +server "urlo.li" { + listen on $ext_addr port 80 + connection { max requests 500, timeout 3600 } + location "/*" { + fastcgi socket tcp 127.0.0.1 9910 + } +}