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
| <?xml version="1.0" encoding="ISO-8859-1"?> | |
| <!DOCTYPE tv SYSTEM "xmltv.dtd"> | |
| <tv source-info-url="http://www.schedulesdirect.org/" source-info-name="Schedules Direct" generator-info-name="XMLTV/$Id: tv_grab_na_dd.in,v 1.70 2008/03/03 15:21:41 rmeden Exp $" generator-info-url="http://www.xmltv.org/"> | |
| <channel id="I10436.labs.zap2it.com"> | |
| <display-name>13 KERA</display-name> | |
| <display-name>13 KERA TX42822:-</display-name> | |
| <display-name>13</display-name> | |
| <display-name>13 KERA fcc</display-name> | |
| <display-name>KERA</display-name> |
| // the main app file | |
| import express from "express"; | |
| import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db) | |
| import authenticate from "./authentication"; // middleware for doing authentication | |
| import permit from "./permission"; // middleware for checking if user's role is permitted to make request | |
| const app = express(), | |
| api = express.Router(); | |
| // first middleware will setup db connection |
| <VirtualHost *:443> | |
| DocumentRoot /var/www/html2 | |
| ServerName www.yourdomain.com | |
| SSLEngine on | |
| SSLCertificateFile /path/to/your_domain_name.crt | |
| SSLCertificateKeyFile /path/to/your_private.key | |
| SSLCertificateChainFile /path/to/DigiCertCA.crt | |
| </VirtualHost> |
| import request from '@/utils/request' | |
| class Errors { | |
| constructor() { | |
| this.errors = {} | |
| } | |
| has(field) { | |
| return this.errors.hasOwnProperty(field) | |
| } | |
| any() { |
| # Sample Nginx config with sane caching settings for modern web development | |
| # | |
| # Motivation: | |
| # Modern web development often happens with developer tools open, e. g. the Chrome Dev Tools. | |
| # These tools automatically deactivate all sorts of caching for you, so you always have a fresh | |
| # and juicy version of your assets available. | |
| # At some point, however, you want to show your work to testers, your boss or your client. | |
| # After you implemented and deployed their feedback, they reload the testing page – and report | |
| # the exact same issues as before! What happened? Of course, they did not have developer tools | |
| # open, and of course, they did not empty their caches before navigating to your site. |
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:
| {"themeId":"5c756a4c4eb806dab2bc58ec","audio":"https:\/\/data.zoftcdn.com\/audio\/ripbook\/22fba88f-95a2-4db5-a4f4-f0e20625b727.mp3","title":"Memorial Video - Yogeswary Ponnampalam - 02-14-14","logo":{"url":"https:\/\/rocketium.com\/images\/5bbeceaad1f816346c9cd902\/resized\/1550727895635.png","position":"top-right","size":6},"scenes":[{"layoutId":"1551104441525","image":"https:\/\/img.zoftcdn.com\/ripbook\/profile\/2018\/10\/11601277\/d2e7bd9a-cae3-47e5-bafe-e7cc27cf7c9d.png","text":[{"text":"In Loving Memory of","type":"sticky"},{"text":"Yogeswary Ponnampalam<br \/>1930 - 2018","type":"sticky"}]},{"layoutId":"1551104441528","image":"https:\/\/img.zoftcdn.com\/ripbook\/profile\/2019\/03\/11601277\/899359a4-c536-4108-acff-1214a4fb95e6.png","audio":"https:\/\/datafile.b-cdn.net\/voices\/2019\/03\/f61e36bb-1809-4496-b1f0-605d117b9bbb.wav","text":["Jaffna's Famous Music Teacher and Principal of Kokuvil Hindu college"]},{"layoutId":"1551104441528","image":"https:\/\/img.zoftcdn.com\/ripbook\/profile\/2019\/03\/11 |
| /*! | |
| * # Range slider for Semantic UI. | |
| * | |
| */ | |
| ;(function ( $, window, document, undefined ) { | |
| "use strict"; | |
| window = (typeof window != 'undefined' && window.Math == Math) |
| <?php | |
| return [ | |
| 'login' => 'Login', | |
| 'register' => 'Register', | |
| 'get_started_now' => 'Get Started Now', | |
| 'register_free' => 'Register Free', | |
| 'register_form' => [ | |
| 'profile_for' => 'Weddingman Profile for', | |
| 'gender' => 'Gender', |
| { | |
| general: { | |
| profile_for: { | |
| }, | |
| gender: { | |
| }, | |
| name: { |