update docs

This commit is contained in:
Steve 2020-02-20 17:03:34 -05:00
parent 701dd84163
commit 59f23c19a8
3 changed files with 11 additions and 2 deletions

1
README
View File

@ -2,6 +2,7 @@ SecretShop: a small Gemini server.
# Features
* Multi-site hosting
* Also supports simple Gopher hosting
* Fully compliant with Jetforce diagnostics
* Probably won't kill your computer

View File

@ -2,6 +2,8 @@
active_capsules:
- localhost
- localhost2
active_holes:
- localhost3
localhost:
Hostname: "localhost"
Port: "1965"
@ -10,9 +12,13 @@ localhost:
KeyFile: "localhost.key"
CertFile: "localhost.crt"
localhost2:
Hostname: "gemini.saintnet.tech"
Hostname: "gemini.foo.bar"
Port: "1966"
RootDir: "/var/gemini2"
CGIDir: "/var/gemini2/cgi"
KeyFile: "localhost2.key"
CertFile: "localhost2.crt"
localhost3:
Hostname: "gopher.foo.bar"
Port: "70"
RootDir: "/var/gopher/"

View File

@ -37,7 +37,7 @@ func main() {
log.Println("No capsules or gopherholes loaded. Shutting down.")
return
}
log.Printf("%v capsules loaded, %v holes loaded", len(capsule_list), len(hole_list))
log.Printf("%v capsules loaded, %v gopherholes loaded", len(capsule_list), len(hole_list))
// Intialize servers
wg := new(sync.WaitGroup)
wg.Add(len(capsule_list) + len(hole_list))
@ -59,6 +59,8 @@ func main() {
wg.Done()
}(h)
}
log.Println("Done bringing up capsules and gopherholes")
log.Println("Ho ho! You found me!")
wg.Wait()
}