This repository has been archived by the owner on Jul 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
h2o.yaml
51 lines (51 loc) · 2.22 KB
/
h2o.yaml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
max-delegations: 5 # default - do not set a different number!
hosts:
"riverwood.lan:80":
listen:
port: 80
paths:
"/":
redirect: https://riverwood.lan
"riverwood.lan:443":
listen:
port: 443
ssl:
key-file: key.pem
certificate-file: cert.pem
min-version: TLSv1.2
compress: ON
file.send-compressed: ON
file.mime.addtypes:
"application/javascript; charset=utf-8": .js
"text/css; charset=utf-8": .css
"text/html; charset=utf-8": .html
file.dirlisting: OFF
paths:
"/":
- reproxy: ON
mruby.handler-file: mrb/root.rb
- proxy.preserve-host: ON
proxy.reverse.url: "http://127.0.0.1:6969/"
"/__as__/":
- mruby.handler-file: mrb/as.rb
- header.add: "x-content-type-options: nosniff"
file.dir: priv/static/
"/__out__/":
- mruby.handler-file: mrb/out.rb
- header.add: 'link: <https://pubsubhubbub.superfeedr.com/>; rel="hub", </__webmention__>; rel="webmention", </__micropub__>; rel="micropub", </__auth__/authorize>; rel="authorization_endpoint", </__auth__/token>; rel="token_endpoint"'
header.add: "strict-transport-security: max-age=31536000"
header.add: "feature-policy: unsized-media 'none'; sync-xhr 'none'; document-write 'none'"
header.add: "referrer-policy: strict-origin"
header.add: "x-content-type-options: nosniff"
file.dir: out/
# https://github.com/snarfed/bridgy/issues/878 → https://issuetracker.google.com/issues/112277350
"/__crapp_engine__/":
- mruby.handler-file: mrb/out.rb
- header.add: 'link: <https://pubsubhubbub.superfeedr.com/>; rel="hub", </__webmention__>; rel="webmention", </__micropub__>; rel="micropub", </__auth__/authorize>; rel="authorization_endpoint", </__auth__/token>; rel="token_endpoint"'
header.add: "strict-transport-security: max-age=31536000"
header.add: "feature-policy: unsized-media 'none'; sync-xhr 'none'; document-write 'none'"
header.add: "referrer-policy: strict-origin"
header.add: "x-content-type-options: nosniff"
compress: OFF
file.send-compressed: OFF
file.dir: out/