@ -12,7 +12,7 @@
#
#
# http-01 challenge in "/var/www/{{identifier} }/"
# http-01 challenge in "/var/www/{ identifier }/"
#
#
[ [ hook ] ]
[ [ hook ] ]
@ -21,7 +21,7 @@ type = ["challenge-http-01"]
cmd = "mkdir"
cmd = "mkdir"
args = [
args = [
"-m" , "0755" ,
"-m" , "0755" ,
"-p" , "{{#if env.HTTP_ROOT}}{{env.HTTP_ROOT}}{{else}}/var/www{{/if}}/{{identifier} }/.well-known/acme-challenge"
"-p" , "{{ if env.HTTP_ROOT }}{ env.HTTP_ROOT }{{ else }}/var/www{{ endif }}/{ identifier }/.well-known/acme-challenge"
]
]
allow_failure = true
allow_failure = true
@ -29,8 +29,8 @@ allow_failure = true
name = "http-01-echo-echo"
name = "http-01-echo-echo"
type = [ "challenge-http-01" ]
type = [ "challenge-http-01" ]
cmd = "echo"
cmd = "echo"
args = [ "{{proof} }" ]
stdout = "{{#if env.HTTP_ROOT}}{{env.HTTP_ROOT}}{{else}}/var/www{{/if}}/{{identifier}}/.well-known/acme-challenge/{{file_name} }"
args = [ "{ proof }" ]
stdout = "{{ if env.HTTP_ROOT }}{ env.HTTP_ROOT }{{ else }}/var/www{{ endif }}/{ identifier }/.well-known/acme-challenge/{ file_name }"
[ [ hook ] ]
[ [ hook ] ]
name = "http-01-echo-chmod"
name = "http-01-echo-chmod"
@ -38,7 +38,7 @@ type = ["challenge-http-01"]
cmd = "chmod"
cmd = "chmod"
args = [
args = [
"a+r" ,
"a+r" ,
"{{#if env.HTTP_ROOT}}{{env.HTTP_ROOT}}{{else}}/var/www{{/if}}/{{identifier}}/.well-known/acme-challenge/{{file_name} }"
"{{ if env.HTTP_ROOT }}{ env.HTTP_ROOT }{{ else }}/var/www{{ endif }}/{ identifier }/.well-known/acme-challenge/{ file_name }"
]
]
allow_failure = true
allow_failure = true
@ -48,7 +48,7 @@ type = ["challenge-http-01-clean"]
cmd = "rm"
cmd = "rm"
args = [
args = [
"-f" ,
"-f" ,
"{{#if env.HTTP_ROOT}}{{env.HTTP_ROOT}}{{else}}/var/www{{/if}}/{{identifier}}/.well-known/acme-challenge/{{file_name} }"
"{{ if env.HTTP_ROOT }}{ env.HTTP_ROOT }{{ else }}/var/www{{ endif }}/{ identifier }/.well-known/acme-challenge/{ file_name }"
]
]
allow_failure = true
allow_failure = true
@ -71,10 +71,10 @@ name = "tls-alpn-01-tacd-start-tcp"
type = [ "challenge-tls-alpn-01" ]
type = [ "challenge-tls-alpn-01" ]
cmd = "tacd"
cmd = "tacd"
args = [
args = [
"--pid-file" , "{{#if env.TACD_PID_ROOT}}{{env.TACD_PID_ROOT}}{{else}}/run{{/if}}/tacd_{{identifier} }.pid" ,
"--domain" , "{{identifier_tls_alpn} }" ,
"--acme-ext" , "{{proof} }" ,
"--listen" , "{{#if env.TACD_HOST}}{{env.TACD_HOST}}{{else}}{{identifier}}{{/if}}:{{#if env.TACD_PORT}}{{env.TACD_PORT}}{{else}}5001{{/if }}"
"--pid-file" , "{{ if env.TACD_PID_ROOT }}{ env.TACD_PID_ROOT }{{ else }}/run{{ endif }}/tacd_{ identifier }.pid" ,
"--domain" , "{ identifier_tls_alpn }" ,
"--acme-ext" , "{ proof }" ,
"--listen" , "{{ if env.TACD_HOST }}{ env.TACD_HOST }{{ else }}{ identifier }{{ endif }}:{{ if env.TACD_PORT }}{ env.TACD_PORT }{{ else }}5001{{ endif }}"
]
]
[ [ hook ] ]
[ [ hook ] ]
@ -82,10 +82,10 @@ name = "tls-alpn-01-tacd-start-unix"
type = [ "challenge-tls-alpn-01" ]
type = [ "challenge-tls-alpn-01" ]
cmd = "tacd"
cmd = "tacd"
args = [
args = [
"--pid-file" , "{{#if env.TACD_PID_ROOT}}{{env.TACD_PID_ROOT}}{{else}}/run{{/if}}/tacd_{{identifier} }.pid" ,
"--domain" , "{{identifier_tls_alpn} }" ,
"--acme-ext" , "{{proof} }" ,
"--listen" , "unix:{{#if env.TACD_SOCK_ROOT}}{{env.TACD_SOCK_ROOT}}{{else}}/run{{/if}}/tacd_{{identifier} }.sock"
"--pid-file" , "{{ if env.TACD_PID_ROOT }}{ env.TACD_PID_ROOT }{{ else }}/run{{ endif }}/tacd_{ identifier }.pid" ,
"--domain" , "{ identifier_tls_alpn }" ,
"--acme-ext" , "{ proof }" ,
"--listen" , "unix:{{ if env.TACD_SOCK_ROOT }}{ env.TACD_SOCK_ROOT }{{ else }}/run{{ endif }}/tacd_{ identifier }.sock"
]
]
[ [ hook ] ]
[ [ hook ] ]
@ -93,7 +93,7 @@ name = "tls-alpn-01-tacd-kill"
type = [ "challenge-tls-alpn-01-clean" ]
type = [ "challenge-tls-alpn-01-clean" ]
cmd = "pkill"
cmd = "pkill"
args = [
args = [
"-F" , "{{#if env.TACD_PID_ROOT}}{{env.TACD_PID_ROOT}}{{else}}/run{{/if}}/tacd_{{identifier} }.pid" ,
"-F" , "{{ if env.TACD_PID_ROOT }}{ env.TACD_PID_ROOT }{{ else }}/run{{ endif }}/tacd_{ identifier }.pid" ,
]
]
allow_failure = true
allow_failure = true
@ -102,7 +102,7 @@ name = "tls-alpn-01-tacd-rm"
type = [ "challenge-tls-alpn-01-clean" ]
type = [ "challenge-tls-alpn-01-clean" ]
cmd = "rm"
cmd = "rm"
args = [
args = [
"-f" , "{{#if env.TACD_PID_ROOT}}{{env.TACD_PID_ROOT}}{{else}}/run{{/if}}/tacd_{{identifier} }.pid" ,
"-f" , "{{ if env.TACD_PID_ROOT }}{ env.TACD_PID_ROOT }{{ else }}/run{{ endif }}/tacd_{ identifier }.pid" ,
]
]
allow_failure = true
allow_failure = true
@ -125,7 +125,7 @@ type = ["file-pre-create", "file-pre-edit"]
cmd = "git"
cmd = "git"
args = [
args = [
"init" ,
"init" ,
"{{file_directory} }"
"{ file_directory }"
]
]
[ [ hook ] ]
[ [ hook ] ]
@ -133,8 +133,8 @@ name = "git-add"
type = [ "file-post-create" , "file-post-edit" ]
type = [ "file-post-create" , "file-post-edit" ]
cmd = "git"
cmd = "git"
args = [
args = [
"-C" , "{{file_directory} }" ,
"add" , "{{file_name} }"
"-C" , "{ file_directory }" ,
"add" , "{ file_name }"
]
]
allow_failure = true
allow_failure = true
@ -143,12 +143,12 @@ name = "git-commit"
type = [ "file-post-create" , "file-post-edit" ]
type = [ "file-post-create" , "file-post-edit" ]
cmd = "git"
cmd = "git"
args = [
args = [
"-C" , "{{file_directory} }" ,
"-c" , "user.name='{{#if env.GIT_USERNAME}}{{env.GIT_USERNAME}}{{else}}ACMEd{{/if }}'" ,
"-c" , "user.email='{{#if env.GIT_EMAIL}}{{env.GIT_EMAIL}}{{else}}acmed@localhost{{/if }}'" ,
"-C" , "{ file_directory }" ,
"-c" , "user.name='{{ if env.GIT_USERNAME }}{ env.GIT_USERNAME }{{ else }}ACMEd{{ endif }}'" ,
"-c" , "user.email='{{ if env.GIT_EMAIL }}{ env.GIT_EMAIL }{{ else }}acmed@localhost{{ endif }}'" ,
"commit" ,
"commit" ,
"-m" , "{{file_name} }" ,
"--only" , "{{file_name} }"
"-m" , "{ file_name }" ,
"--only" , "{ file_name }"
]
]
allow_failure = true
allow_failure = true