From cb5969b49faf30b82ced95003de298ac316d506f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 5 Apr 2021 20:10:38 +0200 Subject: [PATCH] Create ingress.gtpl --- .../rootfs/etc/nginx/templates/ingress.gtpl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 qbittorrent/rootfs/etc/nginx/templates/ingress.gtpl diff --git a/qbittorrent/rootfs/etc/nginx/templates/ingress.gtpl b/qbittorrent/rootfs/etc/nginx/templates/ingress.gtpl new file mode 100644 index 000000000..c4ec5d7df --- /dev/null +++ b/qbittorrent/rootfs/etc/nginx/templates/ingress.gtpl @@ -0,0 +1,16 @@ +server { + listen {{ .interface }}:{{ .port }} default_server; + server_name vue.torrent; + include /etc/nginx/includes/server_params.conf; + include /etc/nginx/includes/proxy_params.conf; + + location / { + root /vuetorrent/public/; + } + + location /api { + proxy_pass {{ .protocol }}://backend; + http2_push_preload on; + client_max_body_size 10M; + } +}