update docs
This commit is contained in:
parent
701dd84163
commit
59f23c19a8
1
README
1
README
@ -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
|
||||||
|
|
||||||
|
@ -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/"
|
||||||
|
4
main.go
4
main.go
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user