apt install nginx
apt install libnginx-mod-rtmp
apt install ffmpeg
apt install stunnel4
vim /etc/nginx/nginx.conf
- Remove http {} and mail {}
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |
.ir { | |
border:0; | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
background-color: transparent; | |
} |
apt install nginx
apt install libnginx-mod-rtmp
apt install ffmpeg
apt install stunnel4
vim /etc/nginx/nginx.conf
#!/bin/sh | |
for file in *.mp3 | |
do | |
basename=${file/.mp3/} | |
mkdir $basename | |
ffmpeg -y -i "$file" -c:a aac -b:a 128k -muxdelay 0 -f segment -sc_threshold 0 -segment_time 7 -segment_list "$basename/playlist.m3u8" -segment_format mpegts "$basename/%d.m4a" | |
done |
// Copy from the original funcion on the router. | |
// The router only allows IPs with 192.168. prefix, and subnet mask 255.255.255.0 | |
// Run on console, and then call applicationApi_dhcpsettingsSet(); | |
function applicationApi_dhcpsettingsSet() { | |
cpApi_get_authId(); | |
var ip_addr = '172.16.0.200'; | |
var start_addr = '172.16.0.201'; | |
var num = 41; |
// const i18n = new VueI18n({ | |
// formatter: new CustomFormatter(), | |
// }); | |
export default class CustomFormatter { | |
interpolate (message, values) { | |
const capitalize = s => s.charAt(0).toUpperCase() + s.slice(1); | |
Object.entries(values || []).forEach(([key, value]) => { | |
value = '' + value; |
const capitalize = str => str.replace(/^\w|\s\w/g, char => char.toUpperCase()); |
version: "3.3" | |
networks: | |
web: | |
external: true | |
services: | |
traefik: | |
image: "traefik:v2.5" | |
container_name: "traefik" |
bk.elf w 00030081 00 00 00 00 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
bk.elf w 00030081 00 00 00 00 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |