如何格式化长配置文件行

时间:2020-05-29 21:20:29

标签: haproxy

我的前端部分有大量的“证书”。整行约为320-400字节。普通的bash或shell行继续无效...

frontend haproxy_www                                                                                                                                                                         
        bind *:80                                                                                                                                                                            
        bind *:443 ssl crt cert1.pem crt cert2.pem crt cert3.pem crt cert4.pem

我尝试了(不起作用):

frontend haproxy_www                                                                                                                                                                         
        bind *:80                                                                                                                                                                            
        bind *:443 ssl \
crt cert1.pem \
crt cert2.pem \
crt cert3.pem \
crt cert4.pem

我阅读了文档,并在文档的顶部描述了文档格式,但没有提到long line continuation或其他内容。

1 个答案:

答案 0 :(得分:0)

在一个稍微相关的问题中...询问有关加入PEM文件的问题...但是似乎可以的一个建议是将各个PEM文件合并为一个。会做到的。