Skip to content

Instantly share code, notes, and snippets.

View systemis's full-sized avatar
:shipit:
Working from home

Stephen (生きがい) systemis

:shipit:
Working from home
View GitHub Profile
@systemis
systemis / nextjs-deploy.md
Created November 22, 2022 15:57 — forked from jjsquady/nextjs-deploy.md
Deploying NEXTJS site with nginx + pm2

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

#!/bin/bash
# Define patterns for Ethereum and Solana private keys
ETH_PATTERN="(0x)?[A-Fa-f0-9]{64}"
SOL_PATTERN="^[1-9A-HJ-NP-Za-km-z]{88}$"
# Check for private keys in staged files
FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(js|ts|sol|py|sh|txt|json)$')
if [ -z "$FILES" ]; then
exit 0