Mercurial Hosting > luan
comparison src/luan/host/Init.luan @ 1181:51d1342e25ad
luanhost password handling
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 20 Feb 2018 19:50:30 -0700 |
parents | 8ca49f5e114d |
children | 94cf2576a922 |
comparison
equal
deleted
inserted
replaced
1180:8ca49f5e114d | 1181:51d1342e25ad |
---|---|
13 | 13 |
14 local Init = {} | 14 local Init = {} |
15 | 15 |
16 local dir, domain = ... | 16 local dir, domain = ... |
17 | 17 |
18 Init.password = Io.schemes.file(dir).child("password").read_text() | 18 Init.password = Luan.do_file(dir.."/info.luan").password or error() |
19 | 19 |
20 Http.dir = "file:"..dir.."/site" | 20 Http.dir = "file:"..dir.."/site" |
21 | 21 |
22 function Io.schemes.site(path,loading) | 22 function Io.schemes.site(path,loading) |
23 return Io.uri( Http.dir..path, loading ) | 23 return Io.uri( Http.dir..path, loading ) |