From 83b34879eef7b5c12ecc52732cc5eb26ba063c81 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 24 Nov 2022 15:11:31 +0100 Subject: nginx_reverse_proxy --- roles/nginx_reverse_proxy/templates/nginx.conf.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 roles/nginx_reverse_proxy/templates/nginx.conf.j2 (limited to 'roles/nginx_reverse_proxy/templates/nginx.conf.j2') diff --git a/roles/nginx_reverse_proxy/templates/nginx.conf.j2 b/roles/nginx_reverse_proxy/templates/nginx.conf.j2 new file mode 100644 index 0000000..4c8ed3a --- /dev/null +++ b/roles/nginx_reverse_proxy/templates/nginx.conf.j2 @@ -0,0 +1,12 @@ +# vi: ft=nginx +server { + listen 443 ssl; + server_name {{ nginx_reverse_proxy.server_name }} ; + + ssl_certificate {{ nginx_reverse_proxy.cert }}; + ssl_certificate_key {{ nginx_reverse_proxy.key }}; + + location / { + proxy_pass {{ nginx_reverse_proxy.proxy_address }}; + } +} -- cgit v1.2.3