Skip to content

Instantly share code, notes, and snippets.

View TusharDahibhate's full-sized avatar
💭

Tushar Dahibhate TusharDahibhate

💭
  • Qualcomm
  • San Diego
View GitHub Profile
@TusharDahibhate
TusharDahibhate / letsencrypt_2020.md
Created September 6, 2021 22:35 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@TusharDahibhate
TusharDahibhate / 2019-https-localhost.md
Created September 6, 2021 22:35 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@TusharDahibhate
TusharDahibhate / deployToGitHubPages
Created September 5, 2021 03:52
Deploy React application to GitHub Pages
# This will work for React applications
$ npm install --save gh-pages
homepage - Specifies the path where the application will get hosted.
The homepage in this case will be https://tushardahibhate.github.io/<Repository name>
Put the following in the scripts section in the package.json file
predeploy - Commands before deployment
deploy- Branch and directory to deploy.