⬇️(Deprecated)My blog using vue-ssr (server-side rendering)
VUE-SSR版本已上线,欢迎访问:zmis.me官网
单页面(Single Page Application)版本代码请点这里 此版本已停更
npm install
#dev mode
npm run dev
npm install
npm run build
npm start
npm install pm2 -g
pm2 start server.js
pm2 list
npm run del
server {
listen 80;
server_name zmis.me;
root /path/to/your/floder/myBlog/dist/;
#charset koi8-r;
#access_log logs/host.access.log main;
index index.html;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Nginx-Proxy true;
proxy_set_header Connection "";
proxy_pass http://127.0.0.1:8080;
proxy_redirect default;
}
location ~ .*\.(js|css)$ {
expires 7d;
add_header Cache-Control max-age=86400;
etag on;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
expires 30d;
}
}