all repos — flounder @ 7bf10b1a0e72bf7bfa0a249b84c3233eff6a5f7a

A small site builder for the Gemini protocol

rename port
alex wennerberg alex@alexwennerberg.com
Mon, 26 Oct 2020 19:32:14 -0700
commit

7bf10b1a0e72bf7bfa0a249b84c3233eff6a5f7a

parent

54767b4d396b25fdb393d4b1b2ad07b36ce57f50

3 files changed, 3 insertions(+), 3 deletions(-)

jump to
M config.goconfig.go

@@ -9,7 +9,7 @@ FilesDirectory string

TemplatesDirectory string Host string HttpsEnabled bool - Port string + HttpPort string SiteTitle string Debug bool SecretKey string
M flounder.tomlflounder.toml

@@ -5,7 +5,7 @@ # Include port if running locally

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
M http.gohttp.go

@@ -377,7 +377,7 @@ serveMux := http.NewServeMux()

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)