add unique name for backend

This commit is contained in:
Robert Kaussow 2018-12-14 00:55:36 +01:00
parent 1b1296958d
commit 3e5833a825

View File

@ -1,6 +1,6 @@
#jinja2: lstrip_blocks: True
# {{ ansible_managed }}
upstream backend {
upstream backend_drone {
server {{ droneci_server_ip }}:{{ droneci_server_proxy_port }};
}
@ -12,7 +12,7 @@ server {
return 301 https://$server_name$request_uri;
{% else %}
location / {
proxy_pass {{ droneci_server_proxy_protocol }}://backend;
proxy_pass {{ droneci_server_proxy_protocol }}://backend_drone;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@ -28,7 +28,7 @@ server {
server_name {{ droneci_server_name }};
location / {
proxy_pass {{ droneci_server_proxy_protocol }}://backend;
proxy_pass {{ droneci_server_proxy_protocol }}://backend_drone;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;