如何格式化长配置文件行

问题描述 投票:0回答:1

我的前端部分具有大量的“证书”。整行约为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

PS,我阅读了该文档,并在该文档的顶部描述了文档格式,但未提及long line continuation或其他内容。

haproxy
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.