Closed ottok closed 9 years ago
Thanks for mention this. You are right, GC2 is not tested with https, but should work if the changes you suggest if implemented.
I’ll very much appreciate your help with this.
This is not immediately relevant for our use case but I might send a pull request some day to implement this. Feel free to assign this task to me.
Thanks!
GC2 now supports HTTPS. Add "protocol" => "http" to the App class in App.php. All base layer tiles are loaded over HTTPS except MapQuest OSM tiles. Check out the 'ssl' branch for test. I'll soon merge with master.
Of couse it's "protocol" => "https". It'll default to "protocol" => "http".
No need to add the config "protocol" => "https". Protocol is now detected. And do NOT use the config if you are mixing http and https.
I tried running GeoCloud on a https-server. I did change the http to https at https://github.com/mapcentia/geocloud2/blob/master/app/conf/hosts.php.dist instance on my server, but it only the first pages and login work. Most JavaScript functionality fails because external scripts are requested via http (not https) and thus browsers block the requests. I grepped the sources and noticed http is hard coded in very many places.
Is GeoCloud2 supposed to work over a https connection? I know PHP, can I help by adding a new configuration option 'protocol' to App.php and then replace all http references in the sources to use the configuration option instead, so that it can be changed?