Mercurial Hosting > luan
comparison host/test/test_renew_ssl.luan @ 2122:ce75c0136e28 default tip
merge
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Wed, 07 Jan 2026 14:00:43 -0700 |
| parents | 3d9c0061baf7 |
| children |
comparison
equal
deleted
inserted
replaced
| 2089:454bc5a2ba10 | 2122:ce75c0136e28 |
|---|---|
| 1 local Luan = require "luan:Luan.luan" | |
| 2 local error = Luan.error | |
| 3 local do_file = Luan.do_file or error() | |
| 4 local Io = require "luan:Io.luan" | |
| 5 local uri = Io.uri or error() | |
| 6 local Logging = require "luan:logging/Logging.luan" | |
| 7 local logger = Logging.logger "test_https" | |
| 8 | |
| 9 local Https = require "classpath:luan/host/Https.luan" | |
| 10 | |
| 11 local domain = "https.s3.luan.software" | |
| 12 local site_dir = uri("file:../sites/https.s3.luan.software/") | |
| 13 local luanhost_dir = uri("file:..") | |
| 14 local dry_run = true | |
| 15 local files = Https.get_files(domain, site_dir) | |
| 16 logger.info(files.csr_file.canonical().to_string()) | |
| 17 | |
| 18 site_dir.exists() or error() | |
| 19 | |
| 20 Https.renew_ssl(files, 0,luanhost_dir,dry_run) |
