You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
739 B
35 lines
739 B
package main |
|
|
|
type config struct { |
|
host string |
|
port int |
|
documentRoot string |
|
enableUserFolders bool |
|
indexFile string |
|
indexMime string |
|
userPrefix string |
|
userRoot string |
|
userFolder string |
|
} |
|
|
|
func makeConfig() *config { |
|
c := new(config) |
|
|
|
// |
|
// Update config values here |
|
// All paths should be absolute (no ~i, ., or ..) |
|
// |
|
c.host = "" // This must be filled in |
|
c.port = 1961 // First crewed flight |
|
c.documentRoot = "/var/mercury" |
|
c.enableUserFolders = true |
|
c.userPrefix = "/users" // Must being with '/' |
|
c.userRoot = "/home" |
|
c.userFolder = "public_mercury" |
|
c.indexFile = "index.gmi" |
|
c.indexMime = "text/gemini" |
|
|
|
return c |
|
} |
|
|
|
|
|
|