This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
- Domain filtering
- Referrer filtering
- Embed buster
.flipbox { | |
position: relative; | |
} | |
.flipbox__front, | |
.flipbox__back { | |
transition: 0.7s all ease-in-out; | |
backface-visibility: hidden; | |
} |
server { | |
listen 80; | |
server_name <domain> <www.domain>; | |
root /var/www; | |
index index.php; | |
charset utf-8; | |
location = /favicon.ico { access_log off; log_not_found off; } | |
location = /robots.txt { access_log off; log_not_found off; } |
server { | |
listen 80; | |
server_name <URL> <www.URL>; | |
root /var/www/encoder; | |
index index.php; | |
charset utf-8; | |
location = /favicon.ico { access_log off; log_not_found off; } | |
location = /robots.txt { access_log off; log_not_found off; } |
This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
@echo off | |
echo ****************************************************************************************** | |
echo This uses FFMPEG to convert and rename all of the files required for AoWoW sounds and | |
echo music. FFMPEG will loop indefinitely if we output a file of the same extension (MP3 to | |
echo MP3), so we just append an underscore there. | |
echo ****************************************************************************************** | |
echo USE: Place this convert.cmd and ffmpeg.exe in the <localeCode>\Sound folder and run. | |
echo ****************************************************************************************** | |
pause |
#!/bin/bash | |
find . -name "*.wav" | xargs -I % sh -c 'ffmpeg -hide_banner -y -i "%" -acodec libvorbis -f ogg "%_"; rm "%";' && find . -name "*.mp3" | xargs -I % sh -c 'ffmpeg -hide_banner -y -i "%" -acodec libmp3lame -f mp3 "%_"; rm "%";' |
<VirtualHost *:{PORT}> | |
ServerName www.yourdomain.com | |
ServerAdmin [email protected] | |
DocumentRoot /var/www/yourdir/ | |
<Directory /var/www/yourdir> | |
Options Indexes FollowSymLinks | |
AllowOverride all | |
Order allow,deny |