Skip to content

Commit

Permalink
add nginx, scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
andineck committed May 12, 2018
1 parent 513455c commit e8adc72
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"eslint.enable": false,
"standard.enable": false,
"tslint.enable": false
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"name": "Com Router",
"name": "comrouter",
"version": "0.0.1",
"main": "app.js",
"scripts": {
"start": "node app.js"
"start": "node app.js",
"pm2": "PORT=8001 pm2 start npm --name comrouter -- run start",
"setup": "cp scripts/comrouter.conf /etc/nginx/conf.d/comrouter.conf"
},
"dependencies": {
"express": "3.4.4",
Expand Down
2 changes: 1 addition & 1 deletion public/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h2 class="intro-text text-center"><strong>Quest</strong>ions?</h2>
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<p>copyright &copy; www.intesso.com 2013</p>
<p>copyright &copy; www.intesso.com 2018</p>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h2 class="intro-text text-center"><strong>Tech</strong>nology</h2>
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<p>copyright &copy; www.intesso.com 2013</p>
<p>copyright &copy; www.intesso.com 2018</p>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion public/message.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h2 class="intro-text text-center">Receive <strong>Message</strong></h2>
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<p>copyright &copy; www.intesso.com 2013</p>
<p>copyright &copy; www.intesso.com 2018</p>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion public/voice.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h2 class="intro-text text-center"><strong>Voice </strong> Messaging</h2>
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<p>copyright &copy; www.intesso.com 2013</p>
<p>copyright &copy; www.intesso.com 2018</p>
</div>
</div>
</div>
Expand Down
14 changes: 14 additions & 0 deletions scripts/comrouter.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
server {
listen 80;

server_name comrouter.intesso.com www.comrouter.intesso.com;

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

0 comments on commit e8adc72

Please sign in to comment.