add unique name for backend
This commit is contained in:
parent
1b1296958d
commit
3e5833a825
@ -1,6 +1,6 @@
|
|||||||
#jinja2: lstrip_blocks: True
|
#jinja2: lstrip_blocks: True
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
upstream backend {
|
upstream backend_drone {
|
||||||
server {{ droneci_server_ip }}:{{ droneci_server_proxy_port }};
|
server {{ droneci_server_ip }}:{{ droneci_server_proxy_port }};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ server {
|
|||||||
return 301 https://$server_name$request_uri;
|
return 301 https://$server_name$request_uri;
|
||||||
{% else %}
|
{% else %}
|
||||||
location / {
|
location / {
|
||||||
proxy_pass {{ droneci_server_proxy_protocol }}://backend;
|
proxy_pass {{ droneci_server_proxy_protocol }}://backend_drone;
|
||||||
|
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
@ -28,7 +28,7 @@ server {
|
|||||||
server_name {{ droneci_server_name }};
|
server_name {{ droneci_server_name }};
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass {{ droneci_server_proxy_protocol }}://backend;
|
proxy_pass {{ droneci_server_proxy_protocol }}://backend_drone;
|
||||||
|
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
Loading…
Reference in New Issue
Block a user