Skip to content

Commit

Permalink
Added more security info
Browse files Browse the repository at this point in the history
  • Loading branch information
tammybutow committed Oct 2, 2015
1 parent 2b01c92 commit 27b502c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cloud.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Hello!

If you would like to ship the chat app to the cloud using a DigitalOcean droplet please follow the instructions below:
If you would like to ship the Revel chat app to the cloud using a DigitalOcean droplet please follow the instructions below:

If you don't have a DigitalOcean account you can get $10 in credit by signing up with this link: do.co/tammyshark

Create a droplet: 1GB Ubuntu 15.04 x64. Tick User Data and enter the following cloud-config/metadata/user data script:
Create a droplet: 1GB Ubuntu 15.04 x64. Tick User Data and enter the following cloud-config/metadata/user data script. The reason we use this script is that it will create a more secure droplet with a new user, firewall and fail2ban.

```
#cloud-config
Expand All @@ -17,7 +17,7 @@ users:
runcmd:
- apt-get update && apt-get upgrade -y
- sed -i -e '/^PermitRootLogin/s/^.*$/PermitRootLogin no/' /etc/ssh/sshd_config
- sed -i -e '$aAllowUsers chat' /etc/ssh/sshd_config
- sed -i -e '$aAllowUsers demo' /etc/ssh/sshd_config
- restart ssh
- ufw allow 22,80,443
- ufw enable
Expand All @@ -29,3 +29,8 @@ runcmd:
```

<3

Then ssh into your droplet, install go and grab the revel chat app.

There is a guide on how to do that here: https://www.digitalocean.com/community/tutorials/how-to-install-go-and-revel-on-an-ubuntu-13-04-x64-vps

0 comments on commit 27b502c

Please sign in to comment.