Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Wier-Stewart/ws-stats-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ws-stats-server

Install:

  1. Requires node and npm.
  2. npm install
  3. nohup npm run dev &
  4. exit from ssh.

Real Install:

  1. Follow these instructions to create a service

Deploy to sites using a single script tag, or the WordPress plugin

<script src="://your-server.com/browser/js/stats.js"></script>

Apache2 Proxy Config:

ProxyPass /browser http://localhost:8000

NGINX Proxy Config:

    location / {
        proxy_pass http://127.0.0.1:8000;
        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;
    }

Testing

http://localhost:8000/test is a very cheap way to send sample, but real pageload data.

About

Paired with ws-stats wordpress plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published