❄️ Nix configurations

remove traefik conf

+94 -94
+94 -94
modules/nixos/server/plex.nix
··· 10 10 group = "media"; 11 11 }; 12 12 13 - services.traefik.dynamicConfigOptions = { 14 - http = { 15 - routers = { 16 - plex = { 17 - entryPoints = [ "websecure" ]; 18 - rule = "Host(`plex.otter.place`)"; 19 - service = "plex"; 20 - tls = { 21 - certResolver = "letsencrypt"; 22 - options = "plexTLS"; 23 - }; 24 - middlewares = [ "plex-headers" "plex-compress" "plex-buffering" ]; 25 - }; 26 - }; 13 + # services.traefik.dynamicConfigOptions = { 14 + # http = { 15 + # routers = { 16 + # plex = { 17 + # entryPoints = [ "websecure" ]; 18 + # rule = "Host(`plex.otter.place`)"; 19 + # service = "plex"; 20 + # tls = { 21 + # certResolver = "letsencrypt"; 22 + # options = "plexTLS"; 23 + # }; 24 + # middlewares = [ "plex-headers" "plex-compress" "plex-buffering" ]; 25 + # }; 26 + # }; 27 27 28 - services = { 29 - plex = { 30 - loadBalancer = { 31 - passHostHeader = true; 32 - serversTransport = "plexTransport"; 33 - servers = [ { url = "http://127.0.0.1:32400"; } ]; 34 - }; 35 - }; 36 - }; 28 + # services = { 29 + # plex = { 30 + # loadBalancer = { 31 + # passHostHeader = true; 32 + # serversTransport = "plexTransport"; 33 + # servers = [ { url = "http://127.0.0.1:32400"; } ]; 34 + # }; 35 + # }; 36 + # }; 37 37 38 - middlewares = { 39 - plex-headers = { 40 - headers = { 41 - customRequestHeaders = { 42 - Upgrade = "websocket"; 43 - Connection = "Upgrade"; 44 - # If Plex needs original scheme forwarded: 45 - X-Forwarded-Proto = "https"; 46 - }; 47 - }; 48 - }; 38 + # middlewares = { 39 + # plex-headers = { 40 + # headers = { 41 + # customRequestHeaders = { 42 + # Upgrade = "websocket"; 43 + # Connection = "Upgrade"; 44 + # # If Plex needs original scheme forwarded: 45 + # X-Forwarded-Proto = "https"; 46 + # }; 47 + # }; 48 + # }; 49 49 50 - plex-compress = { 51 - compress = { 52 - includedContentTypes = [ 53 - "text/plain" 54 - "text/css" 55 - "text/xml" 56 - "application/xml" 57 - "application/json" 58 - "application/javascript" 59 - "image/svg+xml" 60 - ]; 61 - }; 62 - }; 50 + # plex-compress = { 51 + # compress = { 52 + # includedContentTypes = [ 53 + # "text/plain" 54 + # "text/css" 55 + # "text/xml" 56 + # "application/xml" 57 + # "application/json" 58 + # "application/javascript" 59 + # "image/svg+xml" 60 + # ]; 61 + # }; 62 + # }; 63 63 64 - plex-buffering = { 65 - buffering = { 66 - maxRequestBodyBytes = 104857600; # 100M 67 - }; 68 - }; 69 - }; 64 + # plex-buffering = { 65 + # buffering = { 66 + # maxRequestBodyBytes = 104857600; # 100M 67 + # }; 68 + # }; 69 + # }; 70 70 71 - serversTransports = { 72 - plexTransport = { 73 - responseHeaderTimeout = "100m"; 74 - idleTimeout = "100m"; 75 - dialTimeout = "30s"; 76 - }; 77 - }; 78 - }; 71 + # serversTransports = { 72 + # plexTransport = { 73 + # responseHeaderTimeout = "100m"; 74 + # idleTimeout = "100m"; 75 + # dialTimeout = "30s"; 76 + # }; 77 + # }; 78 + # }; 79 79 80 - tls = { 81 - options = { 82 - plexTLS = { 83 - minVersion = "VersionTLS12"; 84 - preferServerCipherSuites = true; 85 - cipherSuites = [ 86 - "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" 87 - "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" 88 - "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" 89 - "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" 90 - "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" 91 - "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" 92 - "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256" 93 - "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" 94 - "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" 95 - "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384" 96 - "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384" 97 - "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" 98 - "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" 99 - "TLS_DHE_RSA_WITH_AES_128_CBC_SHA256" 100 - "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" 101 - "TLS_DHE_RSA_WITH_AES_256_CBC_SHA256" 102 - "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" 103 - "TLS_RSA_WITH_AES_128_GCM_SHA256" 104 - "TLS_RSA_WITH_AES_256_GCM_SHA384" 105 - "TLS_RSA_WITH_AES_128_CBC_SHA256" 106 - "TLS_RSA_WITH_AES_256_CBC_SHA" 107 - "TLS_RSA_WITH_AES_128_CBC_SHA" 108 - ]; 109 - }; 110 - }; 111 - }; 112 - }; 80 + # tls = { 81 + # options = { 82 + # plexTLS = { 83 + # minVersion = "VersionTLS12"; 84 + # preferServerCipherSuites = true; 85 + # cipherSuites = [ 86 + # "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" 87 + # "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" 88 + # "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" 89 + # "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" 90 + # "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" 91 + # "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" 92 + # "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256" 93 + # "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" 94 + # "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" 95 + # "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384" 96 + # "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384" 97 + # "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" 98 + # "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" 99 + # "TLS_DHE_RSA_WITH_AES_128_CBC_SHA256" 100 + # "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" 101 + # "TLS_DHE_RSA_WITH_AES_256_CBC_SHA256" 102 + # "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" 103 + # "TLS_RSA_WITH_AES_128_GCM_SHA256" 104 + # "TLS_RSA_WITH_AES_256_GCM_SHA384" 105 + # "TLS_RSA_WITH_AES_128_CBC_SHA256" 106 + # "TLS_RSA_WITH_AES_256_CBC_SHA" 107 + # "TLS_RSA_WITH_AES_128_CBC_SHA" 108 + # ]; 109 + # }; 110 + # }; 111 + # }; 112 + # }; 113 113 }