From 347803f5a811972c719b09999d4d2b5e9e32e3eb Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Fri, 1 Sep 2023 01:27:09 +0200 Subject: new nginx role --- roles/nginx/defaults/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 roles/nginx/defaults/main.yml (limited to 'roles/nginx/defaults/main.yml') diff --git a/roles/nginx/defaults/main.yml b/roles/nginx/defaults/main.yml new file mode 100644 index 0000000..bb9a0ea --- /dev/null +++ b/roles/nginx/defaults/main.yml @@ -0,0 +1,10 @@ +--- +nginx: + servers: + default: + listen: 443 ssl + server_name: '{{ ansible_facts.fqdn }}' + ssl_certificate: '/etc/ssl/certs/{{ ansible_facts.fqdn }}.pem' + ssl_certificate_key: '/etc/ssl/private/{{ ansible_facts.fqdn }}.key' + 'location /': + proxy_pass: http://localhost:8080 -- cgit v1.2.3