Skip to content

Commit

Permalink
Create index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruv-2015 authored Oct 30, 2021
1 parent 34b2f9f commit a1a306d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.js
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);
}
});

0 comments on commit a1a306d

Please sign in to comment.