diff options
| author | winter | 2024-12-09 21:15:02 +0000 |
|---|---|---|
| committer | winter | 2024-12-09 21:15:02 +0000 |
| commit | 50edbd3907c26a2d4d616421de9bb51a4d083c1b (patch) | |
| tree | 0c422392d3eb10fd50ea7736281e0bda8c198cf7 | |
| parent | 1ab1c4d9c6a28e9929052bd00f15866eb1a5a200 (diff) | |
move https in config.ini to debug section
| -rw-r--r-- | WpfTest/GlobalConfig.php | 2 | ||||
| -rw-r--r-- | config.ini | 11 |
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 { @@ -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 |
