Skip to content

Commit 668d808

Browse files
author
Prashanth
committed
feat(deploy): Add deploy configs
1 parent c59a91e commit 668d808

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

deploy/nginx/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## NGINX Setup
2+
3+
- Copy config to `/etc/nginx/sites-available/`
4+
- Test config `sudo nginx -t`
5+
- Restart NGINX `sudo systemctl restart nginx`

deploy/nginx/default

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
server {
2+
listen 80;
3+
4+
server_name prashanthr.me;
5+
6+
location / {
7+
proxy_pass http://localhost:9095;
8+
proxy_http_version 1.1;
9+
proxy_set_header Upgrade $http_upgrade;
10+
proxy_set_header Connection 'upgrade';
11+
proxy_set_header Host $host;
12+
proxy_cache_bypass $http_upgrade;
13+
}
14+
}

ecosystem.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"deploy": {
3+
"production" : {
4+
"user": "root",
5+
"host": ["45.55.194.231"],
6+
"ref": "origin/master",
7+
"key": "~/.ssh/do",
8+
"repo": "git@github.com:prashanthr/talk-to-me.git",
9+
"path": "/var/www",
10+
"ssh_options": ["StrictHostKeyChecking=no", "PasswordAuthentication=no"],
11+
"post-deploy": "echo deployment complete ✓"
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)