Skip to content

Commit

Permalink
update INSTALL.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jysperm committed Oct 12, 2014
1 parent 2710a02 commit e932f97
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
28 changes: 14 additions & 14 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
vi /etc/hosts

apt-get install mongodb=1:2.4.9-1ubuntu2
apt-get install nodejs git nginx redis-server ntp supervisor
apt-get install python g++ make screen wget zip unzip iftop vim curl htop iptraf nethogs
apt-get install python g++ make nodejs git nginx redis-server ntp supervisor

npm install coffee-script -g

Expand All @@ -36,22 +35,22 @@

vi /etc/nginx/sites-enabled/rpadmin

server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
rewrite ^/(.*)$ http://DOMAIN/#redirect permanent;
}
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
rewrite ^/(.*)$ http://rp.rpvhost.net/#redirect permanent;
}

server {
listen 80;
server {
listen 80;

server_name DOMAIN;
server_name rp.rpvhost.net;

location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://unix:/home/rpadmin/rootpanel.sock:/;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://unix:/home/rpadmin/rootpanel.sock:/;
}
}
}

useradd -m rpadmin
usermod -G rpadmin -a www-data
Expand Down Expand Up @@ -142,6 +141,7 @@
### Runtime

# Shell
aot-get install screen wget zip unzip iftop vim curl htop iptraf nethogs
apt-get install libcurl4-openssl-dev axel unrar-free emacs subversion subversion-tools tmux mercurial postfix

# Golang
Expand Down
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
# based on ubuntu/trusty64
config.vm.box = "jysperm/rootpanel"
config.vm.hostname = "rp.rpvhost.net"

config.vm.network "private_network", ip: "192.168.33.10"
config.vm.network "public_network", bridge: 'en0: Wi-Fi (AirPort)'

config.vm.synced_folder ".", "/vagrant",
owner: "rpadmin", group: "rpadmin"
Expand Down
6 changes: 3 additions & 3 deletions sample/core.config.coffee
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports =
web:
name: 'RootPanel'
url: 'http://rpvhost.net'
t_name: 'plugins.rpvhost.site_name'
url: 'http://rp.rpvhost.net'
listen: '/home/rpadmin/rootpanel.sock'
google_analytics_id: 'UA-49193300-2'
google_analytics_id: ''

account:
cookie_time: 30 * 24 * 3600 * 1000
Expand Down
4 changes: 2 additions & 2 deletions sample/rpvhost.config.coffee
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports =
web:
t_name: 'plugins.rpvhost.site_name'
url: 'http://rpvhost.net'
url: 'http://rp.rpvhost.net'
listen: '/home/rpadmin/rootpanel.sock'
google_analytics_id: 'UA-49193300-2'
google_analytics_id: ''

account:
cookie_time: 30 * 24 * 3600 * 1000
Expand Down

0 comments on commit e932f97

Please sign in to comment.