Skip to content

developmentmachine/dayu-official

Repository files navigation

What for

Just for fun......

How to use

sh

npm install
npm start

pm2

npm install pm2@latest -g
pm2 start --name dayu-app 'npm start'
pm2 list

nginx

path

cd /etc/nginx/conf.d

config

server {
        listen       80;
        server_name  localhost;

        location / {
            proxy_pass http://localhost:3000;
        }
	
	    location ^~ /video/ {
            alias /var/videos/;  # 音视频文件目录
    	}
    	
    	location /_next/webpack-hmr {
            proxy_pass http://localhost:3000/_next/webpack-hmr;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
        }
}

restart

systemctl restart nginx

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published