Add scheme to domain name

#3084 @baisong can you review this, it is the issue you discovered.  No rush I have fixed this manually in production.  Just don't save the OGC cp > build > private-files form, this is what triggers the incorrect variable to be saved.