Hello Darryl,

On 2014-02-13 09:50, Darryl Sutherland wrote:

Firstly, thanks for the SaaS test code you provided in really fast
time. I have been testing, and so far the configuration of the split
storage and SQl was fairly easy to do - so that's a good start.
however, I have some observations in the test SaaS ui changes:

I'm wondering about the client/server mapping I see in
config-site.php. You have created an array map, similar to the
following example:

$customers = array(
 'client1.archive.synaq.com' => 'client1',
 'client2.archive.synaq.com' => 'client2'
 );

$config['CUSTOMER_ID'] = $customers[$_SERVER['HTTP_HOST']];
 $config['SITE_NAME'] = $_SERVER['HTTP_HOST'];
 $config['SITE_URL'] = 'http://' . $_SERVER['HTTP_HOST'] . '/';

Is the above not more complicated than it needs to be? Why not just
map Mysql customer_settings(domain) to client email@address supplied
on login to identify the client. The SaaS edition already provides the
ability to configure per client portal information, why not pair it
with the customer login? If you are concerned about not being able to
track client routing across multiple node servers, or not being able
to reference the node in a detached ui, then maybe just include a node
column in the customer_settings table to assist with the ui routing?

This way you Piler SaaS can serve comfortably out of one namespace,

yes, this makes the gui more manageable. In the meantime this idea came
to my mind as well, so I'll give it a shot. I'll also create a saas
demo, and I'm going to develop and add the saas-related improvements,
so everything could be tried immediately.

product space, we only want our clients to go to one url:
https://archive.synaq.com

that makes sense, so it will be just like that

Janos

Reply via email to