Skip to content

Instantly share code, notes, and snippets.

View Xoffio's full-sized avatar
👨‍🚀
In the cloud

- Xoffio - Xoffio

👨‍🚀
In the cloud
  • New York City
View GitHub Profile
@Xoffio
Xoffio / next_nginx.md
Created June 2, 2021 14:17 — forked from kocisov/next_nginx.md
How to setup next.js app on nginx with letsencrypt

How to setup next.js app on nginx with letsencrypt

next.js, nginx, reverse-proxy, ssl

1. Install nginx and letsencrypt

$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt

Also enable nginx in ufw

@Xoffio
Xoffio / gist:05cddc64b9f719d1ae03bbb928de0aae
Created May 22, 2021 15:57 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>