tvheadend 서버의 IP와 PORT를 노출하지 않으려고 앞단에 proxy 서버를 두려고 한다.
1. tvheadend 4.3 버전부터는 nginx reverse proxy 설정에 아래의 두 줄을 추가해 줘야 한다.
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
2. tvheadend 설정에서 프록시 프로토콜을 활성화한다.
3. 클라이언트 IP를 가져오기 위한 헤더 추가.
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;
'Ubuntu' 카테고리의 다른 글
[Ubuntu] at 명령어로 원하는 시간 동안만 curl 다운로드 예약을 하자. (0) | 2023.04.24 |
---|---|
[Ubuntu] iptables 포트 관리 (0) | 2023.03.29 |
[Ubuntu] supervisor 프로세스 관리 (0) | 2023.03.28 |
[Tvheadend] 기본 포트 변경하기 (0) | 2023.03.28 |
[Tvheadend] 적용되어 있는 EPG 초기화 하는 방법 (0) | 2023.03.28 |