Skip to content

Instantly share code, notes, and snippets.

View shawazi's full-sized avatar
🦥
atrophying

Shawaz shawazi

🦥
atrophying
View GitHub Profile
@shawazi
shawazi / default HTTP
Created September 3, 2024 07:11 — forked from iam-hussain/default HTTP
Serve nextJS app from a port through NGINX reverse proxy HTTP and HTTPS
# Serve nextJS app from a port through NGINX reverse proxy (HTTP)
# Path: /etc/nginx/sites-available/default
# Default server configuration for HTTP
server {
server_name www.DOMAINNAME.com DOMAINNAME.com;
# Serve any static assets with NGINX
location /_next/static {
alias /home/ubuntu/PROJECT_FOLDER/.next/static;