api: convert service config to JS and remove it from main config

This commit is contained in:
wukko
2024-08-03 16:27:20 +06:00
parent 3a2504ae87
commit 332eae16b2
8 changed files with 206 additions and 161 deletions

View File

@@ -3,9 +3,10 @@ import ffmpeg from "ffmpeg-static";
import { spawn } from "child_process";
import { create as contentDisposition } from "content-disposition-header";
import { env, ffmpegArgs } from "../config.js";
import { metadataManager } from "../misc/utils.js";
import { destroyInternalStream } from "./manage.js";
import { env, ffmpegArgs, hlsExceptions } from "../config.js";
import { hlsExceptions } from "../processing/service-config.js";
import { getHeaders, closeRequest, closeResponse, pipe } from "./shared.js";
function toRawHeaders(headers) {