This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
npm run build
pm2 start npm --name \"next-auth\" --watch app -- start -- --port 3000
Open http://localhost:3000 with your browser to see the result.
server {
listen 80;
listen [::]:80;
server_name example.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
yum install certbot python3-certbot-nginx -y
certbot --nginx -d example.com -d www.example.com
systemctl status certbot.timer
certbot renew --dry-run