File tree 2 files changed +11
-5
lines changed 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
- ## Version 2025/01/11
1
+ ## Version 2025/05/18
2
2
# make sure that your jellyfin container is named jellyfin
3
3
# make sure that your dns has a cname set for jellyfin
4
4
# if jellyfin is running in bridge mode and the container is named "jellyfin", the below config should work as is
@@ -22,7 +22,9 @@ server {
22
22
set $upstream_app jellyfin;
23
23
set $upstream_port 8096;
24
24
set $upstream_proto http;
25
- add_header Access-Control-Allow-Origin "luna://com.webos.service.config" always;
25
+ if ($http_user_agent ~ Web0S) {
26
+ add_header Access-Control-Allow-Origin "luna://com.webos.service.config" always;
27
+ }
26
28
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
27
29
28
30
proxy_set_header Range $http_range;
@@ -35,7 +37,9 @@ server {
35
37
set $upstream_app jellyfin;
36
38
set $upstream_port 8096;
37
39
set $upstream_proto http;
38
- add_header Access-Control-Allow-Origin "luna://com.webos.service.config" always;
40
+ if ($http_user_agent ~ Web0S) {
41
+ add_header Access-Control-Allow-Origin "luna://com.webos.service.config" always;
42
+ }
39
43
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
40
44
41
45
}
Original file line number Diff line number Diff line change 1
- ## Version 2025/01/11
1
+ ## Version 2025/05/18
2
2
# make sure that your jellyfin container is named jellyfin
3
3
# if jellyfin is running in bridge mode and the container is named "jellyfin", the below config should work as is
4
4
# if not, replace the line "set $upstream_app jellyfin;" with "set $upstream_app <containername>;"
@@ -15,7 +15,9 @@ location ^~ /jellyfin/ {
15
15
set $upstream_app jellyfin;
16
16
set $upstream_port 8096;
17
17
set $upstream_proto http;
18
- add_header Access-Control-Allow-Origin "luna://com.webos.service.config" always;
18
+ if ($http_user_agent ~ Web0S) {
19
+ add_header Access-Control-Allow-Origin "luna://com.webos.service.config" always;
20
+ }
19
21
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
20
22
21
23
proxy_set_header Range $http_range;
You can’t perform that action at this time.
0 commit comments