annotate host/test/test_https.luan @ 2095:69b9d536779c ssltesting tip

add sys_logger
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 14 Dec 2025 20:02:02 -0700
parents c0847b30833f
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 Logging = require "luan:logging/Logging.luan"
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 local logger = Logging.logger "test_https"
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9
2093
c0847b30833f mv https.luan Https.luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 2060
diff changeset
10 local Https = require "classpath:luan/host/Https.luan"
2057
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12 local is_https = true
2093
c0847b30833f mv https.luan Https.luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 2060
diff changeset
13 local domain = "https.me.luan.software"
2057
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 local site_dir = uri("file:local")
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15 local luanhost_dir = uri("file:..")
2060
546daa22aa39 https - check IP of domain
Franklin Schmidt <fschmidt@gmail.com>
parents: 2059
diff changeset
16 local dry_run = true
2057
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18 site_dir.mkdir()
634a44d10c96 https.luan cleanup and add test
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19
2093
c0847b30833f mv https.luan Https.luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 2060
diff changeset
20 Https.do_set_https(is_https,domain,site_dir,luanhost_dir,dry_run)