https://github.com/jerryshell/spa-seo
Single Page Application SEO 单页面应用搜索引擎优化
https://github.com/jerryshell/spa-seo
seo spa
Last synced: 11 months ago
JSON representation
Single Page Application SEO 单页面应用搜索引擎优化
- Host: GitHub
- URL: https://github.com/jerryshell/spa-seo
- Owner: jerryshell
- License: gpl-3.0
- Created: 2021-04-22T06:11:10.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T00:27:09.000Z (over 1 year ago)
- Last Synced: 2025-01-16T15:27:08.171Z (about 1 year ago)
- Topics: seo, spa
- Language: JavaScript
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Single Page Application SEO
## Initialization
```bash
npm i
```
## Test
```bash
npm run test
```
## Start
```bash
pm2 start server.js
```
## Nginx
```bash
location / {
proxy_set_header Host $host:$proxy_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
try_files $uri $uri/ /index.html;
# SSR for Search Engine Spider
if ($http_user_agent ~* "Baiduspider|twitterbot|facebookexternalhit|rogerbot|linkedinbot|embedly|quora link preview|showyoubot|outbrain|pinterest|slackbot|vkShare|W3C_Validator|bingbot|Sosospider|Sogou Pic Spider|Googlebot|360Spider") {
proxy_pass http://127.0.0.1:8686;
}
}
```
## LICENSE
GPLv3