Mercurial Hosting > luan
comparison host/https.luan @ 1632:0344a535b1db
add doc
author | fffilimonov |
---|---|
date | Tue, 14 Dec 2021 07:41:01 +0000 |
parents | b735ed134662 |
children |
comparison
equal
deleted
inserted
replaced
1631:35c626c06dd5 | 1632:0344a535b1db |
---|---|
135 local s = uri("bash:"..cmd).read_text() | 135 local s = uri("bash:"..cmd).read_text() |
136 logger.info("issue certificate "..s) | 136 logger.info("issue certificate "..s) |
137 end | 137 end |
138 if key_file.exists() and local_cer_file.exists() then | 138 if key_file.exists() and local_cer_file.exists() then |
139 changed = true | 139 changed = true |
140 local conf = load_file "file:startup/nginx.ssl.conf.luan" | 140 local conf = load_file "file:startup/nginx/nginx.ssl.conf.luan" |
141 local nginx = output_of( function() conf(top_dir,domain) end ) | 141 local nginx = output_of( function() conf(top_dir,domain) end ) |
142 nginx_file.write(nginx) | 142 nginx_file.write(nginx) |
143 end | 143 end |
144 end | 144 end |
145 else -- http | 145 else -- http |