A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
<?php | |
date_default_timezone_set('America/Los_Angeles'); | |
session_start(); | |
include("ratelimiter.php"); | |
// in this sample, we are using the originating IP, but you can modify to use API keys, or tokens or what-have-you. | |
$rateLimiter = new RateLimiter($_SERVER["REMOTE_ADDR"]); | |
$limit = 100; // number of connections to limit user to per $minutes | |
$minutes = 1; // number of $minutes to check for. |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
#!/bin/sh | |
# Paste at Pastebin.com using command line (browsers are slow, right?) | |
# coder : Anil Dewani | |
# date : Novemeber 7, 2010 | |
# revised on June 22, 2018 by Jonathan Guenther | |
# see README for more information (if I have time to create one...) | |
echo +--------------------------------------------+ |
In this exemple of configuration, if the first server fail (proxy_connect_timeout) one time (max_fails), the second server will be used for 60s (fail_timeout).
The SSL certificate need to be configure on the ReverseProxy server AND the proxyied servers. You can use the same certificate and configurations on all servers.
To test the configuration you can change your host file to simulate the correct domain name.
Use the following tool to configure SSL with optimal configuration.
# Custom Configuration (Specified in Station Profile) | |
# This script is customized from the original, which can be found here: | |
# https://github.com/mkpascal/mk_liquidsoap_processing/blob/master/process.liq | |
# | |
# It can be added to your station via `Utilities` > `Edit Liquidsoap Configuration` | |
# where it can then be pasted into the bottom-most open text area, before the broadcasts | |
# are sent out to the various sources. | |
# Audio Input ---------------------> |
#EXTM3U | |
#EXTINF:-1,BBC - Radio 1 | |
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_one/bbc_radio_one.isml/bbc_radio_one-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 1Xtra | |
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_1xtra/bbc_1xtra.isml/bbc_1xtra-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 1Dance | |
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_one_dance/bbc_radio_one_dance.isml/bbc_radio_one_dance-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 1Relax | |
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_one_relax/bbc_radio_one_relax.isml/bbc_radio_one_relax-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 2 |
#!/bin/bash | |
# Script location : /srv/bin/npm_restore.sh | |
# restore_source : Folder name for restore | |
# npm_home : Location of nginx-proxy-manager installation | |
restore_source=/media/Backups/nginx-proxy-manager | |
npm_home=/srv/nginx-proxy-manager | |
# Import protected variables | |
source /srv/bin/.env | |
# Restore Items |
#!/bin/bash | |
# Script location : /srv/bin/npm_backup.sh | |
# npm_home : Location of nginx-proxy-manager installation | |
# backup_target : Folder name for backup | |
npm_home=/srv/nginx-proxy-manager | |
backup_target=/media/Backups/nginx-proxy-manager | |
# Import protected variables | |
source /srv/bin/.env | |
# Create Backup |