carribeiro / vdeli

Video Delivery Network
2 stars 0 forks source link

cdnserver deploy script doesn't create the correct nginx configuration #49

Open carribeiro opened 13 years ago

carribeiro commented 13 years ago

The nginx configuration contains the server name as part of the log file name. Because of this, we need to know in the deploy script the correct server name. We usually pass it only the ip address, so we need a way to set the correct file name there.

carribeiro commented 13 years ago

Alexey proposed two ways to solve this problem:

1) pass the servername when we will run a fab install_nginx command 2) construct it on the fly using hostname + domain name commands

We settled on the second option. Alexey is implementing that.

Reasoning: we assumed that is safe to use the hostname, since this is one of the things that should be created correcly when the Ubuntu is installed in the server. Also, the username should be created at this step.