next.js, nginx, reverse-proxy, ssl
$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt| <!-- | |
| '************************************************************************* | |
| ' | |
| ' b-PAC 3.2 Component Sample for Extensions (JS_NamePlate.html) | |
| ' | |
| ' (C)Copyright Brother Industries, Ltd. 2019 | |
| ' | |
| '*************************************************************************/ | |
| --> | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 
| import { NextApiHandler, NextApiRequest } from "next"; | |
| import formidable from "formidable"; | |
| import path from "path"; | |
| import fs from "fs/promises"; | |
| export const config = { | |
| api: { | |
| bodyParser: false, | |
| }, | |
| }; | 
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps: