From e289c2579cb912520bd67b6d235d936261901c91 Mon Sep 17 00:00:00 2001 From: binarygeek119 <72405030+binarygeek119@users.noreply.github.com> Date: Fri, 18 Oct 2024 00:25:17 -0500 Subject: [PATCH 1/5] Create stash.subdomain.conf --- stash.subdomain.conf | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 stash.subdomain.conf diff --git a/stash.subdomain.conf b/stash.subdomain.conf new file mode 100644 index 00000000..1a7eb6f2 --- /dev/null +++ b/stash.subdomain.conf @@ -0,0 +1,36 @@ +#make sure that your dns has a cname set for stash + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name stash.*; + + include /config/nginx/ssl.conf; + + client_max_body_size 0; + + # enable for ldap auth, fill in ldap details in ldap.conf + #include /config/nginx/ldap.conf; + + location / { + # enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable the next two lines for ldap auth + #auth_request /auth; + #error_page 401 =200 /login; + + include /config/nginx/proxy.conf; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + resolver 127.0.0.11 valid=30s; + set $upstream_app stash; + set $upstream_port 9999; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + proxy_set_header Host $http_host; + #proxy_read_timeout 60000s; #this need to be adjected in proxy.conf and not here + } +} From b3bad451992be403d4f4becefe6f66f9e31a2d3b Mon Sep 17 00:00:00 2001 From: binarygeek119 <72405030+binarygeek119@users.noreply.github.com> Date: Fri, 18 Oct 2024 00:31:54 -0500 Subject: [PATCH 2/5] Update stash.subdomain.conf --- stash.subdomain.conf | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/stash.subdomain.conf b/stash.subdomain.conf index 1a7eb6f2..222d0018 100644 --- a/stash.subdomain.conf +++ b/stash.subdomain.conf @@ -1,4 +1,9 @@ -#make sure that your dns has a cname set for stash +## Version 2024/10/18 +# make sure that your stash container is named stash +# make sure that your dns has a cname set for stash +# if stash is running in bridge mode and the container is named "stash", the below config should work as is +# if not, replace the line "set $upstream_app stash;" with "set $upstream_app ;" +# or "set $upstream_app ;" for host mode, HOSTIP being the IP address of stash server { listen 443 ssl; @@ -10,27 +15,15 @@ server { client_max_body_size 0; - # enable for ldap auth, fill in ldap details in ldap.conf - #include /config/nginx/ldap.conf; - location / { - # enable the next two lines for http auth - #auth_basic "Restricted"; - #auth_basic_user_file /config/nginx/.htpasswd; - - # enable the next two lines for ldap auth - #auth_request /auth; - #error_page 401 =200 /login; - include /config/nginx/proxy.conf; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - resolver 127.0.0.11 valid=30s; + include /config/nginx/resolver.conf; set $upstream_app stash; set $upstream_port 9999; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; - proxy_set_header Host $http_host; - #proxy_read_timeout 60000s; #this need to be adjected in proxy.conf and not here + + proxy_set_header Range $http_range; + proxy_set_header If-Range $http_if_range; } } From bc94147de8d1f6cb218bea6b2b0d807c4d37e898 Mon Sep 17 00:00:00 2001 From: binarygeek119 <72405030+binarygeek119@users.noreply.github.com> Date: Fri, 18 Oct 2024 00:45:41 -0500 Subject: [PATCH 3/5] Create tubearchivist.subdomain.conf --- tubearchivist.subdomain.conf | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tubearchivist.subdomain.conf diff --git a/tubearchivist.subdomain.conf b/tubearchivist.subdomain.conf new file mode 100644 index 00000000..0bedf906 --- /dev/null +++ b/tubearchivist.subdomain.conf @@ -0,0 +1,31 @@ +## Version 2024/10/18 +# make sure that your TubeArchivist container is named TubeArchivist +# make sure that your dns has a cname set for tubearchivist +# if jellyfin is running in bridge mode and the container is named "TubeArchivist", the below config should work as is +# if not, replace the line "set $upstream_app TubeArchivist;" with "set $upstream_app ;" +# or "set $upstream_app ;" for host mode, HOSTIP being the IP address of tubearchivist +# maker sure to set the "TA_HOST" environment variables to your subdomain in TubeArchivist docker. + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name tubearchivist.*; + + include /config/nginx/ssl.conf; + + client_max_body_size 0; + + location / { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app TubeArchivist; + set $upstream_port 8000; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + proxy_set_header Range $http_range; + proxy_set_header If-Range $http_if_range; + } +} + From f4f49e0878fe0a8a22a2afb13a37f9bdb91e9137 Mon Sep 17 00:00:00 2001 From: binarygeek119 <72405030+binarygeek119@users.noreply.github.com> Date: Fri, 18 Oct 2024 00:48:01 -0500 Subject: [PATCH 4/5] Rename stash.subdomain.conf to stash.subdomain.conf.sample --- stash.subdomain.conf => stash.subdomain.conf.sample | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename stash.subdomain.conf => stash.subdomain.conf.sample (100%) diff --git a/stash.subdomain.conf b/stash.subdomain.conf.sample similarity index 100% rename from stash.subdomain.conf rename to stash.subdomain.conf.sample From 189ddceff8ea96ad53dca95ec44ecc95ad3d9942 Mon Sep 17 00:00:00 2001 From: binarygeek119 <72405030+binarygeek119@users.noreply.github.com> Date: Fri, 18 Oct 2024 00:48:29 -0500 Subject: [PATCH 5/5] Rename tubearchivist.subdomain.conf to tubearchivist.subdomain.conf.sample --- ...rchivist.subdomain.conf => tubearchivist.subdomain.conf.sample | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tubearchivist.subdomain.conf => tubearchivist.subdomain.conf.sample (100%) diff --git a/tubearchivist.subdomain.conf b/tubearchivist.subdomain.conf.sample similarity index 100% rename from tubearchivist.subdomain.conf rename to tubearchivist.subdomain.conf.sample