-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34b2f9f
commit a1a306d
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const fs = require('fs'); | ||
const filepath = ('/etc/flussonic/flussonic.conf') | ||
const PORT = process.env.PORT | ||
const fileData = `# Global settings:\x0ahttp ${PORT};\x0artmp 1935;\x0a\x0aedit_auth dhruv dhruv@123;\x0a\x0a# DVRs:\x0a\x0a# Remote sources:\x0a\x0a# Balancer:\x0a\x0a# Stream templates:\x0a\x0a# Ingest streams:\x0a\x0a\x0a# Publish locations:\x0a\x0a# Disk file caches:\x0a\x0a# VOD locations:\x0a\x0a# DVB cards:\x0a\x0a# Plugins:\x0a\x0a` | ||
fs["writeFile"](filepath, fileData, (error) => { | ||
console.log(filepath); | ||
console.log("done"); | ||
if (error){ | ||
console["log"](error); | ||
console.log(filepath); | ||
} | ||
}); |