annotate host/test/test_https.luan @ 2061:dd10659fcdb9 acme-tiny tip

Renew ssl monthly instead of daily; Fix renewSsl.sh
author Violet7
date Thu, 13 Nov 2025 23:17:16 -0800
parents 546daa22aa39
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2057
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 local Luan = require "luan:Luan.luan"
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 local error = Luan.error
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3 local do_file = Luan.do_file or error()
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 local Io = require "luan:Io.luan"
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 local uri = Io.uri or error()
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 local Hosted = require "luan:host/Hosted.luan"
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 local Logging = require "luan:logging/Logging.luan"
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8 local logger = Logging.logger "test_https"
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11 do_file "classpath:luan/host/https.luan"
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
13 local is_https = true
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 local domain = "https.s3.luan.software"
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15 local site_dir = uri("file:local")
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16 local luanhost_dir = uri("file:..")
2060
546daa22aa39 https - check IP of domain
Franklin Schmidt <fschmidt@gmail.com>
parents: 2059
diff changeset
17 local dry_run = true
2057
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19 site_dir.mkdir()
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
20
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 Hosted.do_set_https(is_https,domain,site_dir,luanhost_dir,dry_run)