diff --git a/roles/taiga/tasks/main.yml b/roles/taiga/tasks/main.yml index ac203bc31e..681d7c7f4d 100644 --- a/roles/taiga/tasks/main.yml +++ b/roles/taiga/tasks/main.yml @@ -187,7 +187,7 @@ ### DONE with taiga-front ### FINALLY, nginx to serve/proxy it all -- copy: src=taiga-http.nginx dest=/etc/nginx/conf.d/taiga-http.conf +- template: src=taiga-http.nginx dest=/etc/nginx/conf.d/taiga-http.conf mode=0644 owner=nginx group=nginx notify: restart nginx tags: taiga diff --git a/roles/taiga/files/taiga-http.nginx b/roles/taiga/templates/taiga-http.nginx similarity index 70% rename from roles/taiga/files/taiga-http.nginx rename to roles/taiga/templates/taiga-http.nginx index 70c983018e..15f27287ea 100644 --- a/roles/taiga/files/taiga-http.nginx +++ b/roles/taiga/templates/taiga-http.nginx @@ -6,5 +6,5 @@ server { client_max_body_size 50M; charset utf-8; - return 302 https://taiga.fedorainfracloud.org$request_uri; + return 302 https://{{ inventory_hostname }}$request_uri; }