Linux Tips: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 22: Line 22:
sudo apt-get update
sudo apt-get update
sudo apt-get -y install certbot
sudo apt-get -y install certbot
</syntaxhighlight>
基本的には CentOS7 のドキュメントをなぞるのでよいが、 hitch.conf はこれにする。
<syntaxhighlight lang="conf" enclose="div">
frontend = {
  host = "*"
  port = "443"
}
backend = "[127.0.0.1]:6086"    # 6086 is the default Varnish PROXY port.
workers = 2                    # number of CPU cores
backlog = 1024
keepalive = 3600
syslog = on
ciphers = "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"
daemon = off
user = "_hitch"
group = "_hitch"
# Enable to let clients negotiate HTTP/2 with ALPN. (default off)
# alpn-protos = "http/2, http/1.1"
# run Varnish as backend over PROXY; varnishd -a :80 -a localhost:6086,PROXY ..
write-proxy-v2 = on            # Write PROXY header
</syntaxhighlight>
</syntaxhighlight>