Skip to content

Commit

Permalink
NGX-731: move upstream config to separate conf file (#35)
Browse files Browse the repository at this point in the history
* NGX-731: move upstream config to separate conf file

* NGX-731: move upstream config to separate conf file

---------

Co-authored-by: Sean <[email protected]>
  • Loading branch information
combssm and combssm authored Jul 20, 2023
1 parent 5264e20 commit 2e75d3c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/etc/nginx/conf.d/upstream.conf.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# {{ template_destpath }}
# {{ ansible_managed }}


upstream http_backend {
{% if use_letsencrypt is defined and use_letsencrypt|bool %}
server 127.0.0.1:8443;
{%- else %}
server 127.0.0.1:8080;
{%- endif %}
keepalive 2;
}

0 comments on commit 2e75d3c

Please sign in to comment.