Skip to content

Instantly share code, notes, and snippets.

View Sovann72's full-sized avatar

Sovann En Sovann72

  • Tenbox
  • Phnom Penh
  • 19:01 (UTC +07:00)
  • X @only_faq
View GitHub Profile
@iam-hussain
iam-hussain / default HTTP
Last active May 6, 2024 21:37
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;