如何格式化长配置文件行
how do I format long config file lines
我的前端部分有大量 'certs'。整行大约 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
或任何接近的内容。
在一个稍微相关的问题中...询问有关加入 PEM 文件的问题...但似乎可行的一项建议是将各个 PEM 文件合并为一个文件。这样就可以了。
我的前端部分有大量 'certs'。整行大约 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
或任何接近的内容。
在一个稍微相关的问题中...询问有关加入 PEM 文件的问题...但似乎可行的一项建议是将各个 PEM 文件合并为一个文件。这样就可以了。