Skip to content

Commit

Permalink
v0.1.4-rc.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjatse committed May 13, 2016
1 parent fbdd5f5 commit cdd7501
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 39 deletions.
40 changes: 2 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit cdd7501

Please sign in to comment.