{"id":547,"date":"2020-09-23T12:30:45","date_gmt":"2020-09-23T17:30:45","guid":{"rendered":"https:\/\/www.scheh.com\/?p=547"},"modified":"2020-10-20T13:05:00","modified_gmt":"2020-10-20T18:05:00","slug":"shinobi-video-ssl-2020-updated","status":"publish","type":"post","link":"https:\/\/www.scheh.com\/index.php\/2020\/09\/23\/shinobi-video-ssl-2020-updated\/","title":{"rendered":"Shinobi Video SSL 2020 Updated"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"547\" class=\"elementor elementor-547\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3458e1a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3458e1a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ed0781c\" data-id=\"ed0781c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-85525a2 elementor-widget elementor-widget-text-editor\" data-id=\"85525a2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li>This help text was compiled using Ubuntu 18.04 server LTS and tested using Ubuntu 20.04 LTS<\/li><\/ul><p><a href=\"https:\/\/shinobi.video\/docs\/start\" target=\"_blank\" rel=\"noopener\">Install Shinobi using the online documentation<\/a><\/p><pre><code>bash <(curl -s https:\/\/gitlab.com\/Shinobi-Systems\/Shinobi-Installer\/raw\/master\/shinobi-install.sh)<\/code><\/pre><p>On the default shinobi website, do the following:<\/p><ul><li>Change your Shinobi Default username and password. This is under Preferences of the \/super site.<\/li><li>Change the Shinobi port from 8080 to 80. This is under Configuration of the \/super site.<\/li><li>Restart the Shinobi core. This is under Controls and Logs of the \/super site.<\/li><\/ul><p>Back to the console of your linux machine:<\/p><p>Become a super user<\/p><pre><code>sudo su<\/code><\/pre><p>Make sure your distribution is up to date<\/p><pre><code>apt-get update\napt-get dist-upgrade<\/code><\/pre><p>Install certbot<\/p><pre><code>apt-get update\napt-get install software-properties-common\napt-get update\napt-get install certbot<\/code><\/pre><p>Setup the folder structure you are going to use for certbot<\/p><pre><code>cd \/home\/Shinobi\nmkdir certs\ncd \/home\/Shinobi\/web\nmkdir -p .well-known\/acme-challenge<\/code><\/pre><p>Generate the certificate<\/p><pre><code>certbot certonly --webroot -w \/home\/Shinobi\/web -d shinobi.website.com<\/code><\/pre><p>Edit the Shinobi super configuration file to turn on SSL by adding this:<\/p><pre style=\"font-size: 16px;\"><code>cd \/home\/Shinobi<br \/>nano conf.json<\/code><\/pre><pre><code>\"ssl\": {<br \/>\"key\": \"\/etc\/letsencrypt\/live\/website.ssl.name\/privkey.pem\",<br \/>\"cert\": \"\/etc\/letsencrypt\/live\/website.ssl.name\/fullchain.pem\",<br \/>\"port\": 443<br \/>},<\/code><\/pre><p>Ctrl O, Enter to Save and Ctrl X to exit<\/p><p>It looks like this in place:<\/p><hr \/><p><code>{<br \/>\"port\": 80,<br \/>\"addStorage\": [<br \/>{<br \/>\"name\": \"second\",<br \/>\"path\": \"__DIR__\/videos2\"<br \/>}<br \/>],<br \/>\"db\": {<br \/>\"host\": \"127.0.0.1\",<br \/>\"user\": \"majesticflame\",<br \/>\"password\": \"\",<br \/>\"database\": \"ccio\",<br \/>\"port\": 3306<br \/>},<br \/>\"mail\": {<br \/>\"service\": \"gmail\",<br \/>\"auth\": {<br \/>\"user\": \"your_email@gmail.com\",<br \/>\"pass\": \"your_password_or_app_specific_password\"<br \/>}<br \/>},<br \/>\"ssl\": {<br \/>\"key\": \"\/etc\/letsencrypt\/live\/website.ssl.name\/privkey.pem\",<br \/>\"cert\": \"\/etc\/letsencrypt\/live\/website.ssl.name\/fullchain.pem\",<br \/>\"port\": 443<br \/>},<\/code><\/p><p>\"cron\": {<\/p><p>\"key\": \"change_this_to_something_very_random__just_anything_other_than_this\"<br \/>},<br \/>\"pluginKeys\": {<br \/>\"Motion\": \"change_this_to_something_very_random____make_sure_to_match__\/plugins\/motion\/conf.json\",<br \/>\"OpenCV\": \"change_this_to_something_very_random____make_sure_to_match__\/plugins\/opencv\/conf.json\",<br \/>\"OpenALPR\": \"SomeOpenALPRkeySoPeopleDontMessWithYourShinobi\"<br \/>}<br \/>}<\/p><p><code><\/code><\/p><hr \/><p>Restart Shinobi<\/p><pre><code>pm2 start camera.js\npm2 start cron.js<\/code><\/pre><p>Profit<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>This help text was compiled using Ubuntu 18.04 server LTS and tested using Ubuntu 20.04 LTS Install Shinobi using the online documentation bash &lt;(curl -s https:\/\/gitlab.com\/Shinobi-Systems\/Shinobi-Installer\/raw\/master\/shinobi-install.sh) On the default shinobi website, do the following: Change your Shinobi Default username and password. This is under Preferences of the \/super site. Change the Shinobi port from 8080 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-547","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3eyIP-8P","_links":{"self":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts\/547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/comments?post=547"}],"version-history":[{"count":0,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts\/547\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/media?parent=547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/categories?post=547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/tags?post=547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}