v0.1.4-rc.2
This commit is contained in:
parent
fbdd5f50b2
commit
cdd7501b79
40
README.md
40
README.md
|
|
@ -117,44 +117,8 @@ Tail Logs
|
|||
|
||||
<a name="serv" />
|
||||
# Serving apps locally with nginx and custom domain
|
||||
|
||||
```ini
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
upstream pm2-gui {
|
||||
server 127.0.0.1:8088;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name pm2-gui.dev;
|
||||
|
||||
#useless but can not get rid of.
|
||||
root /path/to/pm2-gui/web/public;
|
||||
|
||||
try_files $uri/index.html $uri.html $uri @app;
|
||||
|
||||
# paths
|
||||
location @app {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect off;
|
||||
|
||||
proxy_pass http://pm2-gui;
|
||||
}
|
||||
|
||||
# socket.io
|
||||
location /socket.io {
|
||||
proxy_pass http://pm2-gui;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
}
|
||||
}
|
||||
```
|
||||
[simple](examples/nginx/pm.example.com.conf)
|
||||
[advantage](examples/nginx/pm2.example.com.conf)
|
||||
|
||||
## Test
|
||||
```bash
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "pm2-gui",
|
||||
"version": "0.1.4-rc.1",
|
||||
"version": "0.1.4-rc.2",
|
||||
"description": "An elegant web & terminal interface for Unitech/PM2.",
|
||||
"main": "./pm2-gui.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue