View | Details | Raw Unified | Return to bug 238888 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 4-10 Link Here
4
PORTNAME=	h2o
4
PORTNAME=	h2o
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
DISTVERSION=	2.3.0-beta1
6
DISTVERSION=	2.3.0-beta1
7
PORTREVISION=	2
7
PORTREVISION=	3
8
CATEGORIES=	www
8
CATEGORIES=	www
9
PKGNAMESUFFIX=	-devel
9
PKGNAMESUFFIX=	-devel
10
10
(-)files/h2o.conf.sample.in (-7 lines)
Lines 39-58 Link Here
39
# 6 months HSTS pinning
39
# 6 months HSTS pinning
40
header.add: "Strict-Transport-Security: max-age=16000000"
40
header.add: "Strict-Transport-Security: max-age=16000000"
41
41
42
# no patience for slow users
43
http1-request-timeout: 10
44
http2-idle-timeout: 10
45
# limit POST bodies
42
# limit POST bodies
46
limit-request-body: 10485760 # 10MiB
43
limit-request-body: 10485760 # 10MiB
47
max-connections: 1024
48
44
49
file.mime.addtypes:
45
file.mime.addtypes:
50
  image/svg+xml: .svg
51
  text/plain: .log
46
  text/plain: .log
52
  text/css: .css
47
  text/css: .css
53
  application/atom+xml: .xml
48
  application/atom+xml: .xml
54
  application/zip: .zip
55
  application/json: .json
56
  "text/html; charset=utf-8": .html
49
  "text/html; charset=utf-8": .html
57
50
58
# per-host configurations
51
# per-host configurations
(-)files/h2o.in (-2 / +6 lines)
Lines 24-29 Link Here
24
24
25
load_rc_config $name
25
load_rc_config $name
26
26
27
extra_commands="configtest reload"
28
configtest_cmd="h2o_configtest"
29
27
# defaults
30
# defaults
28
: ${h2o_enable:=NO}
31
: ${h2o_enable:=NO}
29
: ${h2o_config:=%%PREFIX%%/etc/${name}/${name}.conf}
32
: ${h2o_config:=%%PREFIX%%/etc/${name}/${name}.conf}
Lines 36-42 Link Here
36
command_args="-m daemon -c ${h2o_config}"
39
command_args="-m daemon -c ${h2o_config}"
37
procname="%%LOCALBASE%%/bin/perl"
40
procname="%%LOCALBASE%%/bin/perl"
38
41
39
# support SIGHUP to reload configuration file
42
h2o_configtest() {
40
extra_commands=reload
43
	"${command}" -c "${h2o_config}" -t
44
}
41
45
42
run_rc_command "$1"
46
run_rc_command "$1"

Return to bug 238888