flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 7bf10b1a0e72bf7bfa0a249b84c3233eff6a5f7a
parent 54767b4d396b25fdb393d4b1b2ad07b36ce57f50
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Mon, 26 Oct 2020 19:32:14 -0700

rename port

Diffstat:
Mconfig.go | 2+-
Mflounder.toml | 2+-
Mhttp.go | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/config.go b/config.go @@ -9,7 +9,7 @@ type Config struct { TemplatesDirectory string Host string HttpsEnabled bool - Port string + HttpPort string SiteTitle string Debug bool SecretKey string diff --git a/flounder.toml b/flounder.toml @@ -5,7 +5,7 @@ SiteTitle="­čÉčflounder" Host="localhost:8080" # Set this depending on whether you want to run this service standalone or through a reverse proxy server -Port="8443" +HttpPort="8443" HttpsEnabled=false # Folder containing subfolders for each user's files diff --git a/http.go b/http.go @@ -377,7 +377,7 @@ func runHTTPServer() { s := strings.SplitN(c.Host, ":", 2) hostname := s[0] - port := c.Port + port := c.HttpPort serveMux.HandleFunc(hostname+"/", rootHandler) serveMux.HandleFunc(hostname+"/my_site", mySiteHandler)