如何为Flynn应用程序设置SSL证书?
最佳答案
@titanous添加的答案已过时,不再有效。
flynn的正确用法是:
usage: flynn route
flynn route add http [-s <service>] [-c <tls-cert> -k <tls-key>] [--sticky] [--leader] [--no-leader] [--no-drain-backends] <domain>
flynn route add tcp [-s <service>] [-p <port>] [--leader] [--no-drain-backends]
flynn route update <id> [-s <service>] [-c <tls-cert> -k <tls-key>] [--sticky] [--no-sticky] [--leader] [--no-leader]
flynn route remove <id>
因此,遵循文档,正确的答案是:
flynn -a slashbox route update http/{ID} -c slashbox.crt -k slashbox.key
这将打印回您:
updated {ID}
。