Posts

How to setup Let's Encrypt Wildcard SSL certificate for Nginx

Image
In this post i well show you how to setup Nginx to service your content using https protocol and let's encrypt new wildcard ssl certificate . If you don't know to issue wildcard ssl certificate please read this post first : https://fiftysoft.blogspot.com/2018/03/step-by-step-how-to-issue-letsencrypt.html Config Nginx to use ssl  certificate edit nginx.conf file to be like this config example : user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; ...

Step by Step How to issue Letsencrypt wildcard certificate

Image
Install Let's Encrypt Client Before we started we should update the repo then install git : For (centos 6 & 7) yum update -y yum install git -y For (ubuntu 14&16) sudo apt-get update -y sudo apt-get install git -y Then we need to install certbot-auto client : For (CentOS 6 & 7  ubuntu 14&16) sudo git clone https://github.com/certbot/certbot cd certbot ./certbot-auto -h Request SSL Certificate After we installed the let's encrypt client now we well issue wildcard certificate for our domain : ./certbot-auto certonly --agree-tos --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory -d examile.com -d "*.examile.com" --email your@email.com When run this script the terminal well ask you to add TXT DNS recored to your domain please follow the script its clear to what you should do. Or if you don't know how to add txt record just search in goog...

how to install nginx rtmp monitoring dashboard

Image
fstv-monitoring  real-time monitoring dashboard for nginx rtmp module How to install first you must installed @nginx-rtmp-module and you need to install nodejs , npm and git . open nginx config file and add at http -> server section put this code location /stat { rtmp_stat all; rtmp_stat_stylesheet stat.xsl; } location /stat.xsl { root html; } location /control { rtmp_control all; # Enable CORS add_header Access-Control-Allow-Origin * always; } move stat.xsl file to main html folder of ningx go to your home folder in your server git clone  https://github.com/fiftysoft/nginx-rtmp-monitoring.git cd to nginx-rtmp-monitoring folder run : npm install start nodejs server node server.js open your borwser to login go to :  http://your-server-ip-address:9991/login?username=admin&password=123123 then open dashboard go to :  http://your-server-ip-address:9991/ if want to logout ...

fix react native duplicate symbol with react-native-maps package

Image
This issue happen to me when i tried to archive the final ipa  to fix this issue replace your pod file with : # You Podfile should look similar to this file. React Native currently does not support use_frameworks! source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' target 'baghdadSewer' do     pod 'React' , path: '../node_modules/react-native'          pod 'GoogleMaps'   # <~~ remove this line if you do not want to support GoogleMaps on iOS          # when not using frameworks  we can do this instead of including the source files in our project (1/4):     #  pod 'react-native-maps', path: '../../'     #  pod 'react-native-google-maps', path: '../../'  # <~~ if you need GoogleMaps support on iOS end Then goto ios folder in your project and run this commend : pod install Then open th...

Laravel 5.3 multiple image upload and resize

Image
laravel 5.3 upload & resize images In this post i well show you how to upload multiple images and resize them . first we need to install the required packages using composer . first go to your project path : cd path/your/project than run this commend to install intervention/image package : composer require intervention/image add to config/app.php  : $provides => [ ......... Intervention\Image\ImageServiceProvider::class, ], $aliases => [ .......... 'Image' => Intervention\Image\Facades\Image::class, ] than in your controller : <?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Intervention\Image\Facades\Image; class UploadController extends Controller { public function thumbnail (Request $request ) { $this -> validate ( $request , [ 'image.*' =>...