From 43270cd5ad4a7fbe270b76f85498cbe67e201177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Tue, 21 Feb 2023 09:59:33 +0900 Subject: [PATCH] =?UTF-8?q?OpenBSD=E3=81=AE=E3=83=80=E3=83=BC=E3=82=AF?= =?UTF-8?q?=E3=83=8D=E3=83=83=E3=83=88=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 4 +++- srv/openbsd/etc/{httpd.conf => httpd-clear.conf} | 0 srv/openbsd/etc/httpd-dark.conf | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) rename srv/openbsd/etc/{httpd.conf => httpd-clear.conf} (100%) create mode 100644 srv/openbsd/etc/httpd-dark.conf 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 + } +}