aboutsummaryrefslogtreecommitdiff
path: root/roles/jellyfin/README.md
blob: 79d061e9da20fecc316ec11212e3ab91d4c7ff62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Ansible - Jellyfin

## Example Playbook
```
# Direct Access: http://art-jr:8096/
# Domain Access: http://kumardamani.xyz/media
# Create login from GUI.
# While doing initial setup set the base url to '/media' in Networking settings.
- hosts: compute
  gather_facts: false
  tags: 'jellyfin'
  become: true
  roles:
    - role: jellyfin
      vars:
        jellyfin_domain: 'kumardamani.xyz'
```

## Nginx Conf
```
            location /media/ {
                 proxy_pass         http://127.0.0.1:8096/media/;
                 proxy_pass_request_headers on;
                 proxy_set_header Host $host;
                 proxy_set_header X-Real-IP $remote_addr;
                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                 proxy_set_header X-Forwarded-Proto $scheme;
                 proxy_set_header X-Forwarded-Host $http_host;
                 proxy_set_header Upgrade $http_upgrade;
                 proxy_set_header Connection $http_connection;
                 # Disable buffering when the nginx proxy gets very resource heavy upon streaming
                 proxy_buffering off;
            }
```