mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-11-10 04:07:26 +01:00
WIP jellyfin
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
36bb875dce
commit
41abf651b9
6
Makefile
6
Makefile
@ -20,14 +20,16 @@
|
||||
|
||||
DOCKER := docker
|
||||
|
||||
PROFILE := wp_db wordpress webserver certbot phpmyadmin flask_website flask_db pgadmin qbittorrent
|
||||
DISABLED_PROFILE := firefox
|
||||
PROFILE := wp_db wordpress webserver certbot phpmyadmin flask_website flask_db pgadmin qbittorrent jellyfin
|
||||
PROFILE_CMD := $(addprefix --profile ,$(PROFILE))
|
||||
|
||||
COMPOSE_FILE := docker-compose.yml
|
||||
|
||||
AUTHOR := bensuperpc
|
||||
|
||||
IMAGE_NAME := wordpress:6.1.1-php8.1-fpm mariadb:10.10.2 nginx:1.23 certbot/certbot:v1.32.0 phpmyadmin:5.2.0 dpage/pgadmin4:6.16 lscr.io/linuxserver/qbittorrent:latest
|
||||
IMAGE_NAME := wordpress:6.1.1-php8.1-fpm mariadb:10.10.2 nginx:1.23 certbot/certbot:v1.32.0 phpmyadmin:5.2.0 dpage/pgadmin4:6.16 lscr.io/linuxserver/qbittorrent:latest \
|
||||
lscr.io/linuxserver/jellyfin:latest firefox:latest lscr.io/linuxserver/firefox:latest
|
||||
|
||||
#IMAGE_AUTHOR := $(addprefix itzg/, $(IMAGE_NAME))
|
||||
|
||||
|
@ -100,6 +100,47 @@ services:
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- app-network
|
||||
jellyfin:
|
||||
image: lscr.io/linuxserver/jellyfin:latest
|
||||
container_name: jellyfin
|
||||
profiles:
|
||||
- jellyfin
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/London
|
||||
- JELLYFIN_PublishedServerUrl=192.168.0.5 #optional
|
||||
volumes:
|
||||
- jellyfin-config:/config
|
||||
- jellyfin-tvseries:/data/tvshows
|
||||
- jellyfin-movies:/data/movies
|
||||
#ports:
|
||||
# - 8096:8096
|
||||
# - 8920:8920 #optional
|
||||
# - 7359:7359/udp #optional
|
||||
# - 1900:1900/udp #optional
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- app-network
|
||||
# firefox:
|
||||
# image: lscr.io/linuxserver/firefox:latest
|
||||
# container_name: firefox
|
||||
# profiles:
|
||||
# - firefox
|
||||
# security_opt:
|
||||
# - seccomp:unconfined #optional
|
||||
# environment:
|
||||
# - PUID=1000
|
||||
# - PGID=1000
|
||||
# - TZ=Europe/London
|
||||
# volumes:
|
||||
# - firefox-config:/config
|
||||
#ports:
|
||||
# - 3000:3000
|
||||
# shm_size: "1gb"
|
||||
# restart: unless-stopped
|
||||
# networks:
|
||||
# - app-network
|
||||
certbot:
|
||||
depends_on:
|
||||
- webserver
|
||||
@ -153,6 +194,14 @@ volumes:
|
||||
qbittorrent-conf:
|
||||
name: qbittorrent-conf
|
||||
|
||||
jellyfin-config:
|
||||
name: jellyfin-config
|
||||
jellyfin-tvseries:
|
||||
name: jellyfin-tvseries
|
||||
jellyfin-movies:
|
||||
name: jellyfin-movies
|
||||
firefox-config:
|
||||
name: firefox-config
|
||||
postgres-data:
|
||||
name: postgres-data
|
||||
|
||||
|
30
nginx-conf/firefox.conf
Normal file
30
nginx-conf/firefox.conf
Normal file
@ -0,0 +1,30 @@
|
||||
#upstream firefox_server {
|
||||
# ip_hash;
|
||||
# server firefox:3000;
|
||||
# server firefox:3000 weight=1 max_fails=3 fail_timeout=30s;
|
||||
#}
|
||||
|
||||
# firefox
|
||||
#server {
|
||||
# listen 80;
|
||||
# listen [::]:80;
|
||||
#listen 443;
|
||||
#listen [::]:443;
|
||||
|
||||
# server_name firefox.bensuperpc.org www.firefox.bensuperpc.org;
|
||||
|
||||
# include /etc/nginx/conf.d/sub/gzip.conf;
|
||||
|
||||
# location / {
|
||||
# proxy_pass http://firefox_server;
|
||||
# proxy_buffering off;
|
||||
# proxy_http_version 1.1;
|
||||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
# proxy_set_header Upgrade $http_upgrade;
|
||||
# proxy_set_header Connection $http_connection;
|
||||
# # From: https://guacamole.apache.org/doc/0.9.7/gug/proxying-guacamole.html
|
||||
# access_log off;
|
||||
# }
|
||||
|
||||
# resolver 8.8.8.8;
|
||||
#}
|
48
nginx-conf/jellyfin.conf
Normal file
48
nginx-conf/jellyfin.conf
Normal file
@ -0,0 +1,48 @@
|
||||
#include /etc/nginx/conf.d/sub/cache-proxy.conf;
|
||||
|
||||
upstream jellyfin_server {
|
||||
# ip_hash;
|
||||
server jellyfin:8096;
|
||||
# server jellyfin:8096 weight=1 max_fails=3 fail_timeout=30s;
|
||||
}
|
||||
|
||||
# jellyfin
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
#listen 443;
|
||||
#listen [::]:443;
|
||||
|
||||
server_name jellyfin.bensuperpc.org www.jellyfin.bensuperpc.org;
|
||||
|
||||
include /etc/nginx/conf.d/sub/gzip.conf;
|
||||
|
||||
location / {
|
||||
proxy_pass http://jellyfin_server;
|
||||
proxy_redirect off;
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
|
||||
#proxy_set_header Host $host;
|
||||
#proxy_set_header X-Real-IP $remote_addr;
|
||||
#proxy_set_header X-Forwarded-Proto $scheme;
|
||||
#proxy_set_header X-Forwarded-Host $host:$server_port;
|
||||
#proxy_set_header X-Forwarded-Server $host;
|
||||
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
#proxy_set_header X-Forwarded-Ssl on;
|
||||
|
||||
# Uncomment if you want to enable proxy cache
|
||||
#proxy_cache PROXY;
|
||||
#proxy_cache_valid 200 302 10m;
|
||||
#proxy_cache_valid 301 1h;
|
||||
#proxy_cache_valid any 1m;
|
||||
#proxy_cache_lock on;
|
||||
|
||||
#proxy_ignore_headers Vary;
|
||||
#proxy_hide_header Vary;
|
||||
|
||||
#add_header X-cache $upstream_cache_status;
|
||||
}
|
||||
|
||||
# resolver 8.8.8.8;
|
||||
}
|
@ -29,6 +29,7 @@ server {
|
||||
#proxy_set_header X-Forwarded-Host $host:$server_port;
|
||||
#proxy_set_header X-Forwarded-Server $host;
|
||||
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
#proxy_set_header X-Forwarded-Ssl on;
|
||||
|
||||
# Uncomment if you want to enable proxy cache
|
||||
#proxy_cache PROXY;
|
||||
|
Loading…
Reference in New Issue
Block a user