[SOLVED] Dynamic Hostnames
Posted: 06 Mar 2019, 14:25
Hey guys,
I'm having trouble understanding what I need to do here. I am in the process of setting up configs for what will eventually be 2400 kiosks. The way the developers have their code set up on our homepage is it grabs the hostname out of the user agent. But I'm very green to Porteus, as each homepage will set the kiosks homepage to have their store location saved on the page based off it's hostname.
Right now I know I can set one config file to have a hostname, but it makes all 3 testers I have to that hostname. Is there a way I can do this where I can set the hostname in there another way? We need the hostname to append the userAgent string, and we need that userAgent string to have the right store number (from the hostname) so it can pass secret keys and authenticate.
As I see it right now, I need to have a separate config file for each store, which has me in a bit of a panic from a workload/management standpoint.
I'm having trouble understanding what I need to do here. I am in the process of setting up configs for what will eventually be 2400 kiosks. The way the developers have their code set up on our homepage is it grabs the hostname out of the user agent. But I'm very green to Porteus, as each homepage will set the kiosks homepage to have their store location saved on the page based off it's hostname.
Right now I know I can set one config file to have a hostname, but it makes all 3 testers I have to that hostname. Is there a way I can do this where I can set the hostname in there another way? We need the hostname to append the userAgent string, and we need that userAgent string to have the right store number (from the hostname) so it can pass secret keys and authenticate.
As I see it right now, I need to have a separate config file for each store, which has me in a bit of a panic from a workload/management standpoint.