aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--WpfTest/GlobalConfig.php2
-rw-r--r--config.ini11
2 files changed, 7 insertions, 6 deletions
diff --git a/WpfTest/GlobalConfig.php b/WpfTest/GlobalConfig.php
index b5bb9df..4601257 100644
--- a/WpfTest/GlobalConfig.php
+++ b/WpfTest/GlobalConfig.php
@@ -17,7 +17,7 @@ class GlobalConfig extends Singleton {
}
public function isHttps(): bool {
- return $this->confData['instance']['https'] ?? true;
+ return $this->confData['debug']['https'] ?? true;
}
public function getBasePath(): string {
diff --git a/config.ini b/config.ini
index a09203f..8047cdd 100644
--- a/config.ini
+++ b/config.ini
@@ -1,11 +1,8 @@
[instance]
; hostname (required) and port (optional) should be the values seen from the
; outside world. this is important if you're using a reverse proxy
-hostname = example.com
+hostname = example.org
;port = 443
-; whether clients will use https to connect - again, important for reverse
-; proxies that terminate tls (optional, default = true)
-;https = false
[database]
host = localhost
@@ -17,4 +14,8 @@ database = wpftest
[debug]
; whether to send full tracebacks on internal server errors (optional,
; default = false)
-;send_tracebacks = true \ No newline at end of file
+send_tracebacks = false
+; whether clients will use https to connect - again, important for reverse
+; proxies that terminate tls (optional, default = true)
+; this should always be true except for in testing
+https = true \ No newline at end of file