From 22690070830d450c8e1362400bc254572677ab3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Mon, 21 Jun 2021 13:09:11 +0200 Subject: [PATCH] radarr: add nginx conf --- roles/radarr/templates/radarr.conf.j2 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 roles/radarr/templates/radarr.conf.j2 diff --git a/roles/radarr/templates/radarr.conf.j2 b/roles/radarr/templates/radarr.conf.j2 new file mode 100644 index 0000000..6ce72bb --- /dev/null +++ b/roles/radarr/templates/radarr.conf.j2 @@ -0,0 +1,20 @@ +server { + server_name {{ role_name }}.{{ base_domain }}; + listen 80; + return 301 https://$server_name$request_uri; +} + +server { + server_name {{ role_name }}.{{ base_domain }}; + listen 443 ssl http2; + + include /etc/nginx/snippets/authelia-endpoint.conf; + + location / { + include /etc/nginx/snippets/proxy.conf; + include /etc/nginx/snippets/authelia-auth.conf; + + set $upstream http://{{ role_name }}:7878; + proxy_pass $upstream; + } +} \ No newline at end of file