aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFChannel <=>2021-01-14 19:57:16 -0800
committerFChannel <=>2021-01-14 19:57:16 -0800
commit83fccbfb4e6755662ef38d0a12fc073f38bf8bdf (patch)
tree37d92be62e8dd8c8093bfb82d2fba1bdd2d694a2
parent4ef87adf6d767f163f5d39e3118fe1bb83508172 (diff)
added transfer protocol to config file
-rw-r--r--config1
-rw-r--r--main.go2
2 files changed, 2 insertions, 1 deletions
diff --git a/config b/config
index c390e19..2299ea8 100644
--- a/config
+++ b/config
@@ -1,4 +1,5 @@
instance:server.fchan.xyz
+instancetp:https://
instanceport:3000
instancename:FChan
instancesummary:FChan is a federated image board instance.
diff --git a/main.go b/main.go
index 9fcd3e8..3e67f36 100644
--- a/main.go
+++ b/main.go
@@ -19,7 +19,7 @@ import "os"
import "bufio"
var Port = ":" + GetConfigValue("instanceport")
-var TP = "http://"
+var TP = GetConfigValue("instancetp")
var Domain = TP + "" + GetConfigValue("instance")
var authReq = []string{"captcha","email","passphrase"}