aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2019-06-30 14:41:17 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2019-06-30 14:41:17 +0000
commitb66098f32b1c8a6bf31deee56334a631a3048f5d (patch)
tree939c08fc1654f914ba377b34424b0ab388d96317 /www
parentf0c25dfb4dbe53b696c6df082e0e9306887cdd06 (diff)
Notes
Diffstat (limited to 'www')
-rw-r--r--www/h2o-devel/Makefile2
-rw-r--r--www/h2o-devel/files/h2o.conf.sample.in7
-rw-r--r--www/h2o-devel/files/h2o.in10
-rw-r--r--www/h2o/Makefile2
-rw-r--r--www/h2o/files/h2o.conf.sample.in7
-rw-r--r--www/h2o/files/h2o.in10
6 files changed, 16 insertions, 22 deletions
diff --git a/www/h2o-devel/Makefile b/www/h2o-devel/Makefile
index 8205bc3b8f9a..b1ad91284477 100644
--- a/www/h2o-devel/Makefile
+++ b/www/h2o-devel/Makefile
@@ -4,7 +4,7 @@
PORTNAME= h2o
DISTVERSIONPREFIX= v
DISTVERSION= 2.3.0-beta1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www
PKGNAMESUFFIX= -devel
diff --git a/www/h2o-devel/files/h2o.conf.sample.in b/www/h2o-devel/files/h2o.conf.sample.in
index c434dc498264..d8d61f6de9e4 100644
--- a/www/h2o-devel/files/h2o.conf.sample.in
+++ b/www/h2o-devel/files/h2o.conf.sample.in
@@ -39,20 +39,13 @@ header.add: "Content-Security-Policy: default-src https:"
# 6 months HSTS pinning
header.add: "Strict-Transport-Security: max-age=16000000"
-# no patience for slow users
-http1-request-timeout: 10
-http2-idle-timeout: 10
# limit POST bodies
limit-request-body: 10485760 # 10MiB
-max-connections: 1024
file.mime.addtypes:
- image/svg+xml: .svg
text/plain: .log
text/css: .css
application/atom+xml: .xml
- application/zip: .zip
- application/json: .json
"text/html; charset=utf-8": .html
# per-host configurations
diff --git a/www/h2o-devel/files/h2o.in b/www/h2o-devel/files/h2o.in
index 1e9bc0661287..bf52d7c610f2 100644
--- a/www/h2o-devel/files/h2o.in
+++ b/www/h2o-devel/files/h2o.in
@@ -24,19 +24,23 @@ desc="An HTTP/2 high-performance webserver"
load_rc_config $name
+extra_commands="configtest reload"
+configtest_cmd="h2o_configtest"
+
# defaults
: ${h2o_enable:=NO}
: ${h2o_config:=%%PREFIX%%/etc/${name}/${name}.conf}
: ${h2o_perl:=%%LOCALBASE%%/bin/perl}
# daemon
-pidfile=`grep pid-file ${h2o_config} | cut -d' ' -f2`
+pidfile=`grep pid-file ${h2o_config} | awk '{print $2}'`
h2o_env="H2O_PERL=${h2o_perl}"
command="%%PREFIX%%/bin/${name}"
command_args="-m daemon -c ${h2o_config}"
procname="%%LOCALBASE%%/bin/perl"
-# support SIGHUP to reload configuration file
-extra_commands=reload
+h2o_configtest() {
+ "${command}" -c "${h2o_config}" -t
+}
run_rc_command "$1"
diff --git a/www/h2o/Makefile b/www/h2o/Makefile
index ad248cfcb7d3..29c23535a4bd 100644
--- a/www/h2o/Makefile
+++ b/www/h2o/Makefile
@@ -4,7 +4,7 @@
PORTNAME= h2o
DISTVERSIONPREFIX= v
DISTVERSION= 2.2.5
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www
MAINTAINER= dch@FreeBSD.org
diff --git a/www/h2o/files/h2o.conf.sample.in b/www/h2o/files/h2o.conf.sample.in
index c434dc498264..d8d61f6de9e4 100644
--- a/www/h2o/files/h2o.conf.sample.in
+++ b/www/h2o/files/h2o.conf.sample.in
@@ -39,20 +39,13 @@ header.add: "Content-Security-Policy: default-src https:"
# 6 months HSTS pinning
header.add: "Strict-Transport-Security: max-age=16000000"
-# no patience for slow users
-http1-request-timeout: 10
-http2-idle-timeout: 10
# limit POST bodies
limit-request-body: 10485760 # 10MiB
-max-connections: 1024
file.mime.addtypes:
- image/svg+xml: .svg
text/plain: .log
text/css: .css
application/atom+xml: .xml
- application/zip: .zip
- application/json: .json
"text/html; charset=utf-8": .html
# per-host configurations
diff --git a/www/h2o/files/h2o.in b/www/h2o/files/h2o.in
index 1e9bc0661287..bf52d7c610f2 100644
--- a/www/h2o/files/h2o.in
+++ b/www/h2o/files/h2o.in
@@ -24,19 +24,23 @@ desc="An HTTP/2 high-performance webserver"
load_rc_config $name
+extra_commands="configtest reload"
+configtest_cmd="h2o_configtest"
+
# defaults
: ${h2o_enable:=NO}
: ${h2o_config:=%%PREFIX%%/etc/${name}/${name}.conf}
: ${h2o_perl:=%%LOCALBASE%%/bin/perl}
# daemon
-pidfile=`grep pid-file ${h2o_config} | cut -d' ' -f2`
+pidfile=`grep pid-file ${h2o_config} | awk '{print $2}'`
h2o_env="H2O_PERL=${h2o_perl}"
command="%%PREFIX%%/bin/${name}"
command_args="-m daemon -c ${h2o_config}"
procname="%%LOCALBASE%%/bin/perl"
-# support SIGHUP to reload configuration file
-extra_commands=reload
+h2o_configtest() {
+ "${command}" -c "${h2o_config}" -t
+}
run_rc_command "$1"