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 # Features
* Multi-site hosting * Multi-site hosting
* Also supports simple Gopher hosting
* Fully compliant with Jetforce diagnostics * Fully compliant with Jetforce diagnostics
* Probably won't kill your computer * Probably won't kill your computer

View File

@ -2,6 +2,8 @@
active_capsules: active_capsules:
- localhost - localhost
- localhost2 - localhost2
active_holes:
- localhost3
localhost: localhost:
Hostname: "localhost" Hostname: "localhost"
Port: "1965" Port: "1965"
@ -10,9 +12,13 @@ localhost:
KeyFile: "localhost.key" KeyFile: "localhost.key"
CertFile: "localhost.crt" CertFile: "localhost.crt"
localhost2: localhost2:
Hostname: "gemini.saintnet.tech" Hostname: "gemini.foo.bar"
Port: "1966" Port: "1966"
RootDir: "/var/gemini2" RootDir: "/var/gemini2"
CGIDir: "/var/gemini2/cgi" CGIDir: "/var/gemini2/cgi"
KeyFile: "localhost2.key" KeyFile: "localhost2.key"
CertFile: "localhost2.crt" 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.") log.Println("No capsules or gopherholes loaded. Shutting down.")
return 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 // Intialize servers
wg := new(sync.WaitGroup) wg := new(sync.WaitGroup)
wg.Add(len(capsule_list) + len(hole_list)) wg.Add(len(capsule_list) + len(hole_list))
@ -59,6 +59,8 @@ func main() {
wg.Done() wg.Done()
}(h) }(h)
} }
log.Println("Done bringing up capsules and gopherholes")
log.Println("Ho ho! You found me!")
wg.Wait() wg.Wait()
} }