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
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:
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\File; | |
| use Illuminate\Support\Str; | |
| /** | |
| * Generates a JSON file with all translations. |
| #!/bin/bash | |
| # SOURCE: https://git-scm.com/docs/githooks | |
| # SOURCE: https://gist.github.com/bartoszmajsak/1396344 | |
| # get the branch name | |
| BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD 2> /dev/null) | |
| if [ "$BRANCH_NAME" == "master" ] || [ "$BRANCH_NAME" == "develop" ] || [ "$BRANCH_NAME" == "test" ] || [[ "$BRANCH_NAME" = release* ]]; then | |
| # if "master" or "develop", then exit normally and don't modify the commit |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use File; | |
| class MakeViewCommand extends Command | |
| { | |
| /** |
| // usage: v-selectize-dropdown="dataKeyToBindTo" | |
| Vue.directive('selectize-dropdown', { | |
| twoWay: true, | |
| priority: 1000, | |
| bind: function () { | |
| var self = this; | |
| $(this.el).selectize({ | |
| create: true, | |
| sortField: 'text', | |
| onChange: function (val) { |
| // Alerts | |
| @include alert-variant($background, $border, $text-color); | |
| // Background Variant | |
| @include bg-variant($parent, $color); | |
| // Border Radius | |
| @include border-top-radius($radius); | |
| @include border-right-radius($radius); | |
| @include border-bottom-radius($radius); |