File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -34,36 +34,36 @@ class CaddyfileGenerator:
3434 def write_to (self , fp ):
3535 print (
3636 dedent ("""\
37- # NOTE: This file has been generated, do not edit
38- (common) {
39- encode zstd gzip
40- log {
41- output stdout
42- }
43- }""" ),
37+ # NOTE: This file has been generated, do not edit
38+ (common) {
39+ encode zstd gzip
40+ log {
41+ output stdout
42+ }
43+ }""" ),
4444 file = fp ,
4545 )
4646
4747 for domain , backend_authority in sorted (self ._backend_of .items ()):
4848 print (
4949 dedent ("""
50- %s {
51- import common
52- reverse_proxy %s {
53- header_down +Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
54- }
55- }""" ) # noqa: E501
50+ %s {
51+ import common
52+ reverse_proxy %s {
53+ header_down +Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
54+ }
55+ }""" ) # noqa: E501
5656 % (domain , backend_authority ),
5757 file = fp ,
5858 )
5959
6060 for source_domain , target_domain in sorted (self ._redir_target_of .items ()):
6161 print (
6262 dedent ("""
63- %s {
64- import common
65- redir https://%s{uri}
66- }""" )
63+ %s {
64+ import common
65+ redir https://%s{uri}
66+ }""" )
6767 % (source_domain , target_domain ),
6868 file = fp ,
6969 )
You can’t perform that action at this time.
0 commit comments