I felt blue tonight

2 Likes

My eyes thank you!

I made a quick and dirty way to deploy in docker without building it from source. Will download the two files into an alpine container each time it is started up.

services:
  cdvr-dark:
    image: nginx:alpine
    container_name: cdvr-dark
    ports:
      - "8088:8088"
    command: >
      sh -c "
      apk add --no-cache curl &&
      mkdir -p /etc/nginx/channels-dark &&
      curl -fsSL -o /etc/nginx/conf.d/channels-dvr-dark.conf https://raw.githubusercontent.com/hdhrgit/cdvrblack/main/nginx/channels-dvr-dark.conf &&
      curl -fsSL -o /etc/nginx/channels-dark/dark-mode.css https://raw.githubusercontent.com/hdhrgit/cdvrblack/main/nginx/dark-mode.css &&
      sed -i 's/127.0.0.1:8089/host.docker.internal:8089/' /etc/nginx/conf.d/channels-dvr-dark.conf &&
      nginx -g 'daemon off;'
      "
    #The line "sed -i 's/127.0.0.1:8089/host.docker.internal:8089/' /etc/nginx/conf.d/channels-dvr-dark.conf &&" is only needed if cdvr is hosted natively and cdvr-dark is hosted in docker with default docker networking
    restart: unless-stopped```