Compare commits

...

5 Commits

33 changed files with 1294 additions and 1332 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ _site/
.sass-cache/ .sass-cache/
.jekyll-cache/ .jekyll-cache/
.jekyll-metadata .jekyll-metadata
.gitattributes

View File

@ -7,7 +7,7 @@ source "https://rubygems.org"
# #
# This will help ensure the proper Jekyll version is running. # This will help ensure the proper Jekyll version is running.
# Happy Jekylling! # Happy Jekylling!
gem "jekyll", "~> 4.0.0" gem "jekyll", "~> 4.2.2"
# This is the default theme for new Jekyll sites. You may change this to anything you like. # This is the default theme for new Jekyll sites. You may change this to anything you like.
# gem "minima", "~> 2.5" # gem "minima", "~> 2.5"
@ -23,6 +23,7 @@ group :jekyll_plugins do
gem "jekyll-paginate-v2" gem "jekyll-paginate-v2"
gem 'jekyll_picture_tag', '~> 1.6' gem 'jekyll_picture_tag', '~> 1.6'
gem 'jekyll-strapi' gem 'jekyll-strapi'
gem 'jekyll-admin'
end end
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem # Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem

View File

@ -1,53 +1,58 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
addressable (2.7.0) addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0) public_suffix (>= 2.0.2, < 5.0)
backports (3.23.0)
colorator (1.1.0) colorator (1.1.0)
concurrent-ruby (1.1.7) concurrent-ruby (1.1.10)
domain_name (0.5.20190701) domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0) unf (>= 0.0.5, < 1.0.0)
em-websocket (0.5.2) em-websocket (0.5.3)
eventmachine (>= 0.12.9) eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0) http_parser.rb (~> 0)
eventmachine (1.2.7) eventmachine (1.2.7)
ffi (1.13.1) ffi (1.15.5)
forwardable-extended (2.6.0) forwardable-extended (2.6.0)
http (3.3.0) http (3.3.0)
addressable (~> 2.3) addressable (~> 2.3)
http-cookie (~> 1.0) http-cookie (~> 1.0)
http-form_data (~> 2.0) http-form_data (~> 2.0)
http_parser.rb (~> 0.6.0) http_parser.rb (~> 0.6.0)
http-cookie (1.0.3) http-cookie (1.0.4)
domain_name (~> 0.5) domain_name (~> 0.5)
http-form_data (2.3.0) http-form_data (2.3.0)
http_parser.rb (0.6.0) http_parser.rb (0.6.0)
i18n (1.8.5) i18n (1.10.0)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
jekyll (4.0.1) jekyll (4.2.2)
addressable (~> 2.4) addressable (~> 2.4)
colorator (~> 1.0) colorator (~> 1.0)
em-websocket (~> 0.5) em-websocket (~> 0.5)
i18n (>= 0.9.5, < 2) i18n (~> 1.0)
jekyll-sass-converter (~> 2.0) jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0) jekyll-watch (~> 2.0)
kramdown (~> 2.1) kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0) kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0) liquid (~> 4.0)
mercenary (~> 0.3.3) mercenary (~> 0.4.0)
pathutil (~> 0.9) pathutil (~> 0.9)
rouge (~> 3.0) rouge (~> 3.0)
safe_yaml (~> 1.0) safe_yaml (~> 1.0)
terminal-table (~> 1.8) terminal-table (~> 2.0)
jekyll-admin (0.11.0)
jekyll (>= 3.7, < 5.0)
sinatra (~> 1.4)
sinatra-contrib (~> 1.4)
jekyll-archives (2.2.1) jekyll-archives (2.2.1)
jekyll (>= 3.6, < 5.0) jekyll (>= 3.6, < 5.0)
jekyll-feed (0.15.1) jekyll-feed (0.16.0)
jekyll (>= 3.7, < 5.0) jekyll (>= 3.7, < 5.0)
jekyll-menus (0.6.1) jekyll-menus (0.6.1)
jekyll (>= 3.6, < 5.0) jekyll (>= 3.6, < 5.0)
jekyll-paginate-v2 (3.0.0) jekyll-paginate-v2 (3.0.0)
jekyll (>= 3.0, < 5.0) jekyll (>= 3.0, < 5.0)
jekyll-sass-converter (2.1.0) jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0) sassc (> 2.0.1, < 3.0)
jekyll-strapi (0.1.3) jekyll-strapi (0.1.3)
http (~> 3.2) http (~> 3.2)
@ -57,57 +62,76 @@ GEM
nuggets nuggets
jekyll-watch (2.2.1) jekyll-watch (2.2.1)
listen (~> 3.0) listen (~> 3.0)
jekyll_picture_tag (1.12.0) jekyll_picture_tag (1.14.0)
addressable (~> 2.6) addressable (~> 2.6)
jekyll (< 5) jekyll (< 5)
mime-types (~> 3) mime-types (~> 3.0)
mini_magick (~> 4) mini_magick (~> 4.0)
objective_elements (~> 1.1.2) objective_elements (~> 1.1)
json (2.5.1) json (2.6.1)
kramdown (2.3.0) kramdown (2.4.0)
rexml rexml
kramdown-parser-gfm (1.1.0) kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0) kramdown (~> 2.0)
liquid (4.0.3) liquid (4.0.3)
listen (3.3.1) listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3) rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10) rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6) mercenary (0.4.0)
mime-types (3.3.1) mime-types (3.4.1)
mime-types-data (~> 3.2015) mime-types-data (~> 3.2015)
mime-types-data (3.2020.1104) mime-types-data (3.2022.0105)
mini_magick (4.11.0) mini_magick (4.11.0)
multi_json (1.15.0)
nuggets (1.6.0) nuggets (1.6.0)
objective_elements (1.1.2) objective_elements (1.1.2)
pathutil (0.16.2) pathutil (0.16.2)
forwardable-extended (~> 2.6) forwardable-extended (~> 2.6)
public_suffix (4.0.6) public_suffix (4.0.7)
rb-fsevent (0.10.4) rack (1.6.13)
rack-protection (1.5.5)
rack
rack-test (1.1.0)
rack (>= 1.0, < 3)
rb-fsevent (0.11.1)
rb-inotify (0.10.1) rb-inotify (0.10.1)
ffi (~> 1.0) ffi (~> 1.0)
rexml (3.2.4) rexml (3.2.5)
rouge (3.25.0) rouge (3.28.0)
safe_yaml (1.0.5) safe_yaml (1.0.5)
sassc (2.4.0) sassc (2.4.0)
ffi (~> 1.9) ffi (~> 1.9)
terminal-table (1.8.0) sinatra (1.4.8)
rack (~> 1.5)
rack-protection (~> 1.4)
tilt (>= 1.3, < 3)
sinatra-contrib (1.4.7)
backports (>= 2.0)
multi_json
rack-protection
rack-test
sinatra (~> 1.4.0)
tilt (>= 1.3, < 3)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1) unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6) thread_safe (0.3.6)
tzinfo (1.2.8) tilt (2.0.10)
tzinfo (1.2.9)
thread_safe (~> 0.1) thread_safe (~> 0.1)
tzinfo-data (1.2020.4) tzinfo-data (1.2022.1)
tzinfo (>= 1.0.0) tzinfo (>= 1.0.0)
unf (0.1.4) unf (0.1.4)
unf_ext unf_ext
unf_ext (0.0.7.7) unf_ext (0.0.8.1)
unicode-display_width (1.7.0) unicode-display_width (1.8.0)
wdm (0.1.1) wdm (0.1.1)
PLATFORMS PLATFORMS
ruby x86_64-linux-musl
DEPENDENCIES DEPENDENCIES
jekyll (~> 4.0.0) jekyll (~> 4.2.2)
jekyll-admin
jekyll-archives jekyll-archives
jekyll-feed (~> 0.12) jekyll-feed (~> 0.12)
jekyll-menus jekyll-menus
@ -120,4 +144,4 @@ DEPENDENCIES
wdm (~> 0.1.1) wdm (~> 0.1.1)
BUNDLED WITH BUNDLED WITH
2.1.4 2.2.24

View File

@ -37,8 +37,8 @@ No proprietary operating system dependencies required, only Docker Engine super
*All Ruby dependencies are created and stored in the Docker container. Simple, smooth and sweet :)* *All Ruby dependencies are created and stored in the Docker container. Simple, smooth and sweet :)*
# API's # API's
* Siteleaf CMS * Strapi CMS, Jekyll-Admin CMS
* Staticman with GitHub * ISSO (Comments)
* Snipcart with Stripe * Snipcart with Stripe
* Mailjet Newsletters * Mailjet Newsletters
* Algolia Search * Algolia Search

View File

@ -20,6 +20,7 @@
baseurl: "/" # the subpath of your site, e.g. /blog /galacticsociety.github.io baseurl: "/" # the subpath of your site, e.g. /blog /galacticsociety.github.io
url: "https://sharpetronics.github.io" # the base hostname & protocol for your site, e.g. https://sharpetronics.github.io url: "https://sharpetronics.github.io" # the base hostname & protocol for your site, e.g. https://sharpetronics.github.io
source: .
#Latent Semantic Indexing for similarity bewtween documents. #Latent Semantic Indexing for similarity bewtween documents.
lsi: true lsi: true
@ -67,6 +68,7 @@ picture:
# Build settings # Build settings
plugins: plugins:
- jekyll-feed #manually generated rss.xml https://jekyllrb.com/tutorials/convert-site-to-jekyll/#10-rss-feed - jekyll-feed #manually generated rss.xml https://jekyllrb.com/tutorials/convert-site-to-jekyll/#10-rss-feed
- jekyll-admin
- jekyll-strapi - jekyll-strapi
- jekyll-menus - jekyll-menus
- jekyll-archives - jekyll-archives

View File

@ -0,0 +1,6 @@
#Product list for all items for SharpeTronics
global-product:
tax: 6%
shipping: $5.00
delivery: 3-5 days
warranty: 30 days money back

View File

@ -1,166 +0,0 @@
#Product list for all items for SharpeTronics
global-product:
tax: 6%
shipping: $5.00
delivery: 3-5 days
warranty: 30 days money back
product-ten:
title: Peppermint Lip Balm
image: assets/images/Peppermint-Lip-Balm.jpg
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
excerpt: Our BEST SELLING lip balm - you'll love it!
category: Lip Balm
tag: Health
id: 201806
sku: 2020
quantity: 14
price: $5.00
weight: Peppermint
format: Physical
material: Wood, Steel
dimension: 15in x 35in
product-one:
title: Peppermint Lip Balm
image: assets/images/Peppermint-Lip-Balm.jpg
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
excerpt: Our BEST SELLING lip balm - you'll love it!
category: Lip Balm
tag: Health
id: 201806
sku: 2020
quantity: 14
price: $5.00
weight: Peppermint
format: Physical
material: Wood, Steel
dimension: 15in x 35in
product-nine:
title: Peppermint Lip Balm
image: assets/images/Peppermint-Lip-Balm.jpg
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
excerpt: Our BEST SELLING lip balm - you'll love it!
category: Lip Balm
tag: Health
id: 201806
sku: 2020
quantity: 14
price: $5.00
weight: Peppermint
format: Physical
material: Wood, Steel
dimension: 15in x 35in
product-two:
title: Peppermint Lip Balm
image: assets/images/Peppermint-Lip-Balm.jpg
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
excerpt: Our BEST SELLING lip balm - you'll love it!
category: Lip Balm
tag: Health
id: 201806
sku: 2020
quantity: 14
price: $5.00
weight: Peppermint
format: Physical
material: Wood, Steel
dimension: 15in x 35in
product-three:
title: Peppermint Lip Balm
image: assets/images/Peppermint-Lip-Balm.jpg
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
excerpt: Our BEST SELLING lip balm - you'll love it!
category: Lip Balm
tag: Health
id: 201806
sku: 2020
quantity: 14
price: $5.00
weight: Peppermint
format: Physical
material: Wood, Steel
dimension: 15in x 35in
product-four:
title: Peppermint Lip Balm
image: assets/images/Peppermint-Lip-Balm.jpg
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
excerpt: Our BEST SELLING lip balm - you'll love it!
category: Lip Balm
tag: Health
id: 201806
sku: 2020
quantity: 14
price: $5.00
weight: Peppermint
format: Physical
material: Wood, Steel
dimension: 15in x 35in
product-five:
title: Peppermint Lip Balm
image: assets/images/Peppermint-Lip-Balm.jpg
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
excerpt: Our BEST SELLING lip balm - you'll love it!
category: Lip Balm
tag: Health
id: 201806
sku: 2020
quantity: 14
price: $5.00
weight: Peppermint
format: Physical
material: Wood, Steel
dimension: 15in x 35in
product-six:
title: Peppermint Lip Balm
image: assets/images/Peppermint-Lip-Balm.jpg
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
excerpt: Our BEST SELLING lip balm - you'll love it!
category: Lip Balm
tag: Health
id: 201806
sku: 2020
quantity: 14
price: $5.00
weight: Peppermint
format: Physical
material: Wood, Steel
dimension: 15in x 35in
product-seven:
title: Peppermint Lip Balm
image: assets/images/Peppermint-Lip-Balm.jpg
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
excerpt: Our BEST SELLING lip balm - you'll love it!
category: Lip Balm
tag: Health
id: 201806
sku: 2020
quantity: 14
price: $5.00
weight: Peppermint
format: Physical
material: Wood, Steel
dimension: 15in x 35in
product-eight:
title: Peppermint Lip Balm
image: assets/images/Peppermint-Lip-Balm.jpg
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
excerpt: Our BEST SELLING lip balm - you'll love it!
category: Lip Balm
tag: Health
id: 201806
sku: 2020
quantity: 14
price: $5.00
weight: Peppermint
format: Physical
material: Wood, Steel
dimension: 15in x 35in

View File

@ -0,0 +1,15 @@
title: Cup
url: /products/2020-06-03-cup/
id: 201806
sku: 202055478373
image: assets/images/Peppermint-Lip-Balm.jpg
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
excerpt: Our BEST SELLING lip balm - you'll love it!
category: Lip Balm
tag: Health
quantity: 14
price: 125.00
weight: Peppermint
format: Physical
material: Wood, Steel
dimension: 15in x 35in

15
_data/products/sample.yml Normal file
View File

@ -0,0 +1,15 @@
title: Dragon
url: /products/2017-02-03-dragon/
id: 201806
sku: 202055478373
image: assets/images/Peppermint-Lip-Balm.jpg
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
excerpt: Our BEST SELLING lip balm - you'll love it!
category: Lip Balm
tag: Health
quantity: 14
price: 5.00
weight: Peppermint
format: Physical
material: Wood, Steel
dimension: 15in x 35in

View File

@ -10,7 +10,7 @@
<p class="copyright"> <p class="copyright">
&copy; 2020 SharpeTronics <a href="{{ site.data.global.creator_link }}" target="_blank"></a><br /> &copy; 2020 SharpeTronics <a href="{{ site.data.global.creator_link }}" target="_blank"></a><br />
<a href="/humans.txt" target="_blank">Imagined by humans</a>, <a href="https://jekyllrb.com/" target="_blank">built with Jekyll</a>, <a href="/humans.txt" target="_blank">Imagined by humans</a>, <a href="https://jekyllrb.com/" target="_blank">built with Jekyll</a>,
<a href="https://github.com/" target="_blank">hosted by GitHub</a><br /> <a href="https://git.sharpetronics.com/SharpeTronics/sharpetronics" target="_blank">hosted by SharpeTronics</a><br />
<!-- Creative Commons Attribution-NoDerivs 3.0 United States License --> <!-- Creative Commons Attribution-NoDerivs 3.0 United States License -->
This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>. This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
</p> </p>

13
api/pages.json Normal file
View File

@ -0,0 +1,13 @@
---
layout: none
permalink: /api/pages/
---
[
{%- for page in site.pages %}
{
"title": {{- page.title | jsonify }},
"url": {{- page.url | jsonify }}
}
{% unless forloop.last %},{% endunless %}
{% endfor -%}
]

22
api/posts.json Normal file
View File

@ -0,0 +1,22 @@
---
layout: none
permalink: /api/posts/
---
[
{%- for post in site.posts %}
{
"id": {{- post.id | jsonify -}},
"url": {{- post.url | jsonify }},
"image": {{- post.banner_image | jsonify -}},
"image-alt": {{- post.banner_image_alt | jsonify -}},
"sub_heading":{{- post.sub_heading | jsonify -}},
"title": {{- post.title | jsonify }},
"author": {{- post.author | jsonify }},
"date": {{- post.date | jsonify }},
"tags": {{- post.tags | jsonify }},
"categories": {{- post.categories | jsonify }},
"content": {{- post.content | jsonify }}
}
{% unless forloop.last %},{% endunless %}
{% endfor -%}
]

15
api/products.json Normal file
View File

@ -0,0 +1,15 @@
---
layout: none
permalink: /api/products/
---
[
{%- for product_hash in site.data.products %}
{% assign product = product_hash[1] %}
{
"title": {{- product.title | jsonify }},
"url": {{- product.url | jsonify }},
"price": {{- product.price | jsonify }}
}
{% unless forloop.last %},{% endunless %}
{% endfor -%}
]

View File

@ -4,7 +4,7 @@ layout: journal_single
author: Charles #case sensitive, please use capitalization for names. author: Charles #case sensitive, please use capitalization for names.
title: Privacy Policy title: Privacy Policy
sub_heading: Maecenas faucibus mollis interdum. Vivamus sagittis lacus sub_heading: Your data is always yours.
banner_image: "/assets/images/pic01.jpg" #Size of banner_image 840x341 banner_image: "/assets/images/pic01.jpg" #Size of banner_image 840x341
banner_image_alt: "privacy policy" banner_image_alt: "privacy policy"

View File

@ -4,7 +4,7 @@ layout: journal_single
author: Charles #case sensitive, please use capitalization for names. author: Charles #case sensitive, please use capitalization for names.
title: Terms & Conditions title: Terms & Conditions
sub_heading: Maecenas faucibus mollis interdum. Vivamus sagittis lacus sub_heading: Our rules and regulations.
banner_image: "/assets/images/pic01.jpg" #Size of banner_image 840x341 banner_image: "/assets/images/pic01.jpg" #Size of banner_image 840x341
banner_image_alt: "terms and conditions" banner_image_alt: "terms and conditions"

View File

@ -36,13 +36,17 @@ For this tutorial, we will launch a secure SSL NGINX web server for your website
Let's Begin! We begin by installing nginx, certbot and verifying versions Strapi needs. Keep in mind, if you are reading this from the future, the versions will change. Let's Begin! We begin by installing nginx, certbot and verifying versions Strapi needs. Keep in mind, if you are reading this from the future, the versions will change.
### Update System ### Update System
```sudo apt update``` ```sudo apt update```
### Install Nginx Certbot Packages ### Install Nginx Certbot Packages
```sudo apt install certbot python3-certbot-nginx``
```sudo apt install certbot python3-certbot-nginx```
### Install NGINX & verify version ### Install NGINX & verify version
```sudo apt install nginx``` ```sudo apt install nginx```
```node -v && nginx -v``` ```node -v && nginx -v```
**Tip:** Strapi recommends nodejs v14, but v12 works. **Tip:** Strapi recommends nodejs v14, but v12 works.
@ -54,10 +58,13 @@ Let's Begin! We begin by installing nginx, certbot and verifying versions Strapi
Next, we will configure your newly installed Nginx server. By default the configurations are located at: /etc/nginx/ & /etc/nginx/sites-available/. To keep things tidy and organized, we create a new api.example.org conf for each domain we are publicly facing to WWW. Next, we will configure your newly installed Nginx server. By default the configurations are located at: /etc/nginx/ & /etc/nginx/sites-available/. To keep things tidy and organized, we create a new api.example.org conf for each domain we are publicly facing to WWW.
### Make Directory & Copy Default HTML page ### Make Directory & Copy Default HTML page
```sudo mkdir -p /var/www/api.example.org/html/``` ```sudo mkdir -p /var/www/api.example.org/html/```
```sudo cp -R /var/www/html/index.nginx-debian.html /var/www/api.example.org/html/index.html``` ```sudo cp -R /var/www/html/index.nginx-debian.html /var/www/api.example.org/html/index.html```
### Duplicate Default Config ### Duplicate Default Config
```sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/api.example.org``` ```sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/api.example.org```
### Update NGINX api.example.org Config File ### Update NGINX api.example.org Config File
@ -131,16 +138,21 @@ We run the automated tool Certbot and create all the needed files and update our
### Run Certbot ### Run Certbot
```sudo certbot --nginx``` ```sudo certbot --nginx```
```Choose api.example.org for the site to create certs. for.``` ```Choose api.example.org for the site to create certs. for.```
```Choose option 1 to disable auto redirect HTTP traffic to HTTPS since we already redirected the traffic manually.``` ```Choose option 1 to disable auto redirect HTTP traffic to HTTPS since we already redirected the traffic manually.```
**Note** sudo certbot renew --dry-run will test for automatic renewal for your certs. [Certbot Insturctions] **Note** sudo certbot renew --dry-run will test for automatic renewal for your certs. [Certbot Insturctions]
### Verify api.example.org Updated with Correct Domain ### Verify api.example.org Updated with Correct Domain
```sudo nano /etc/nginx/sites-enabled/api.example.org``` ```sudo nano /etc/nginx/sites-enabled/api.example.org```
### Test Config & Restart Nginx ### Test Config & Restart Nginx
```sudo nginx -t``` ```sudo nginx -t```
```sudo systemctl restart nginx``` ```sudo systemctl restart nginx```
## Firewall Configuration ## Firewall Configuration
@ -148,10 +160,12 @@ Allow public to connect via HTTPS, we need to open up ports 80 & 443 (HTTP & HTT
### Allow UFW Ports for Public Traffic ### Allow UFW Ports for Public Traffic
```sudo ufw allow HTTPS``` ```sudo ufw allow HTTPS```
```sudo ufw allow HTTP``` ```sudo ufw allow HTTP```
### Verify Status & Reload UFW ### Verify Status & Reload UFW
```sudo ufw status``` ```sudo ufw status```
```sudo ufw reload``` ```sudo ufw reload```
**Tip** sudo ufw allow 'Nginx Full' opens both port 80 & 443 (For SSL / TLS encryption). **Tip** sudo ufw allow 'Nginx Full' opens both port 80 & 443 (For SSL / TLS encryption).
@ -161,25 +175,31 @@ Now, we must install Strapi 4.0 on the server and launch the Strapi server.
### Strapi Default Installation ### Strapi Default Installation
Goto desired place to install Strapi project i.e. ~/development/my-strapi-project, then, Goto desired place to install Strapi project i.e. ~/development/my-strapi-project, then,
```yarn create strapi-app my-project``` ```yarn create strapi-app my-project```
**Note:** The default Strapi installation uses SQLite as the database. You are able to use other databases like PostgreSQL. See [Strapi Installation] for more details. **Note:** The default Strapi installation uses SQLite as the database. You are able to use other databases like PostgreSQL. See **[Strapi Installation]** for more details.
### Launch Strapi Development Server ### Launch Strapi Development Server
```yarn develop``` ```yarn develop```
### Launch Strapi from Domain URL ### Launch Strapi from Domain URL
```Goto: api.example.com via web browser of your choice```
```Goto: api.example.com via web browser of your choice.```
```Follow the instructions and continue creating a new Strapi administrator.``` ```Follow the instructions and continue creating a new Strapi administrator.```
## References: #### References:
[Nginx Strapi Configuration:](https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/deployment/optional-software/nginx-proxy.html#nginx-upstream) [Nginx Strapi Configuration](https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/deployment/optional-software/nginx-proxy.html#nginx-upstream)
[Strapi Installation](https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/installation/cli.html#creating-a-strapi-project) [Strapi Installation](https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/installation/cli.html#creating-a-strapi-project)
[Nginx Server Blocks:](https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04)
[Install Yarn:](https://yarnpkg.com/getting-started/install)
[Certbot Insturctions:](https://certbot.eff.org/instructions?ws=nginx&os=ubuntufocal)
## Donations Are Welcome [Nginx Server Blocks](https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04)
[Install Yarn](https://yarnpkg.com/getting-started/install)
[Certbot Insturctions](https://certbot.eff.org/instructions?ws=nginx&os=ubuntufocal)
#### Donations Are Welcome
[Cash App](https://cash.app/$sharpeee) [Cash App](https://cash.app/$sharpeee)
<script type="text/javascript" src="https://cdnjs.buymeacoffee.com/1.0.0/button.prod.min.js" data-name="bmc-button" data-slug="odinzu" data-color="#FFDD00" data-emoji="🍕" data-font="Cookie" data-text="Buy me a pizza" data-outline-color="#000000" data-font-color="#000000" data-coffee-color="#ffffff" ></script>

View File

@ -1,11 +1,11 @@
____ __ ______ ____ __ ______
/\ _`\ /\ \ /\__ _\ __ /\ _`\ /\ \ /\__ _\ __
\ \,\L\_\ \ \___ __ _ __ _____ _\/_/\ \/ _ __ ___ ___ /\_\ ___ ____ \ \,\L\_\ \ \___ __ _ __ _____ _\/_/\ \/ _ __ ___ ___ /\_\ ___ ____
\/_\__ \\ \ _ `\ /'__`\ /\`'__/\ '__`\ /'__`\\ \ \/\`'__/ __`\/' _ `\/\ \ /'___\ /',__\ \/_\__ \\ \ _ `\ /'__`\ /\`'__/\ '__`\ /'__`\\ \ \/\`'__/ __`\/' _ `\/\ \ /'___\ /',__\
/\ \L\ \ \ \ \ \/\ \L\.\\ \ \/\ \ \L\ /\ __/ \ \ \ \ \/\ \L\ /\ \/\ \ \ \/\ \__//\__, `\ /\ \L\ \ \ \ \ \/\ \L\.\\ \ \/\ \ \L\ /\ __/ \ \ \ \ \/\ \L\ /\ \/\ \ \ \/\ \__//\__, `\
\/_____/\/_/\/_/\/__/\/_/\/_/ \ \ \/ \/____/ \/_/\/_/\/___/ \/_/\/_/\/_/\/____/\/___/ \/_____/\/_/\/_/\/__/\/_/\/_/ \ \ \/ \/____/ \/_/\/_/\/___/ \/_/\/_/\/_/\/____/\/___/
\ \_\ \ \_\
\/_/ \/_/
Owner: @csharpe_me (Charles Sharpe) Owner: @csharpe_me (Charles Sharpe)
Designer: @ajlkn, @csharpe_me Designer: @ajlkn, @csharpe_me
Developer: @ajlkn, @csharpe_me Developer: @ajlkn, @csharpe_me
@ -32,12 +32,6 @@ SPECIAL THANKS
@ajlkn @ajlkn
aj.lkn.io aj.lkn.io
@oakstudios
oak.is
@AlainHelaili
helaili.github.io
TECHNOLOGY TECHNOLOGY
---------- ----------
@ -62,7 +56,7 @@ yaml.org
Docker - Container virtualization Docker - Container virtualization
docker.com docker.com
Git, GitHub, GitHub Actions & GitHub Pages - Code collaboration, continuous delivery, version management, DevOps & static hosting Git, Gitea, Drone, GitHub (Mirror) & Gitea Pages - Code collaboration, continuous delivery, version management, DevOps & static hosting
github.com github.com
Font Awesome - Premium Web icons Font Awesome - Premium Web icons
@ -103,10 +97,10 @@ Licensing - Use & distribute software
creativecommons.org, gnu.org, fsf.org creativecommons.org, gnu.org, fsf.org
Web Browser Testing - Testing UI/UX of the website Web Browser Testing - Testing UI/UX of the website
google.com/chrome/, www.mozilla.org/en-US/firefox google.com/chrome/, mozilla.org/en-US/firefox
DuckDuckGo - Search engine privacy Startpage - Search engine privacy
duckduckgo.com startpage.com
FONTS FONTS