Skip to content

Instantly share code, notes, and snippets.

View romanchechyotkin's full-sized avatar
🍚
i love rice

Roman Chechyotkin romanchechyotkin

🍚
i love rice
View GitHub Profile
@iam-hussain
iam-hussain / default HTTP
Last active May 7, 2025 20:11
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;