Mercurial Hosting > luan
view host/test/test_https.luan @ 2158:b235600ea89b nginx_sites_addon tip
add nginx_default_conf
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Tue, 27 Jan 2026 21:50:37 -0700 |
| parents | c0847b30833f |
| children |
line wrap: on
line source
local Luan = require "luan:Luan.luan" local error = Luan.error local do_file = Luan.do_file or error() local Io = require "luan:Io.luan" local uri = Io.uri or error() local Logging = require "luan:logging/Logging.luan" local logger = Logging.logger "test_https" local Https = require "classpath:luan/host/Https.luan" local is_https = true local domain = "https.me.luan.software" local site_dir = uri("file:local") local luanhost_dir = uri("file:..") local nginx_default_conf = uri("file:../local/nginx.default.conf") local dry_run = true site_dir.mkdir() Https.do_set_https(is_https,domain,site_dir,luanhost_dir,nginx_default_conf,dry_run)
