]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: nginx: set hostname in config
authorKen Dreyer <kdreyer@redhat.com>
Thu, 22 Oct 2015 16:51:14 +0000 (10:51 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 22 Oct 2015 16:53:31 +0000 (10:53 -0600)
Ensure that nginx routes HTTP requests to the right server definition.

ansible/roles/ansible-jenkins/templates/jenkins.conf

index b01e34de84d42fbcdd1c570cd5328cae74c4c1ad..5f498e525f0138bd627f1cc8698f711d584d6f2c 100644 (file)
@@ -1,10 +1,9 @@
 # {{ ansible_managed }}
 
 server {
-    listen       80;
+    listen       80 default_server;
 
-    # FIXME
-    server_name  localhost;
+    server_name  localhost {{ ansible_fqdn }};
 
     access_log  /var/log/nginx/jenkins_access.log;
     error_log  /var/log/nginx/jenkins_error.log;