bonethug 0.0.97 → 0.0.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 639a849014aa51df3e82507a038d877257907b56
4
- data.tar.gz: 4c72e0a302eb1d1068fb3340689703cd5c6e2303
3
+ metadata.gz: 2c8308290d652974f1e1f493158bd1fdf49bd0c4
4
+ data.tar.gz: 891ea6c7470f9f5adcaa20b203192b40e2a2e071
5
5
  SHA512:
6
- metadata.gz: ccdd33f291b1b2aca13e380cf5b206785b4b597de42dfba21c6ca668fb64f6d5b244c4bb95ba5565eccb7546da3c3d7bbcd5d805d0b18acbac9d27ec35388871
7
- data.tar.gz: 974b20d0247c2f5f65c3b271c248a0841da472016d162f9410fd662290dbf564b04b5516ef5acc41787854a9f8abd5a012ef53ac2c8478befd2ad86b1b9a8ce6
6
+ metadata.gz: eb301fcee7f96d8839511151fbfec4cca5c23149cf315476cf2da8b79dccb0a3107440b65923259ac39af83eca4b89828dd3b81d6aaa81650e553370fdbb8af5
7
+ data.tar.gz: e8898add7dd5477304c601d13b7dec49b77aa7ae5600c19d1c69ddc435661ae4c8fc7ce1beb02258bc0b32adeffa47606ff0d26ab4b69661959e3dca21a7cda6
data/TODO.txt CHANGED
@@ -11,4 +11,5 @@
11
11
  - need more modular configuration of server components for setup scripts
12
12
  - thug vhost-local and thug deploy could share more code
13
13
  - log rotate
14
- - gemfile parsing is a bit flaky
14
+ - gemfile parsing is a bit flaky
15
+ - need to look at best practice around compiling assets also compile on deploy.
@@ -89,9 +89,11 @@ module Bonethug
89
89
  else # apache
90
90
 
91
91
  access = vh_cnf.get('version').to_f >= 2.4 ? "Require all granted" : "Order allow,deny\nAllow from all"
92
+ port = vh_cnf.get('port') || 80
93
+ ssl_port = vh_cnf.get('ssl_port') || 443
92
94
 
93
95
  vh = "
94
- <VirtualHost *:80>
96
+ <VirtualHost *:#{port.to_s}>
95
97
 
96
98
  ServerName #{vh_cnf.get('server_name')}
97
99
  #{server_aliases}
@@ -123,7 +125,7 @@ module Bonethug
123
125
  if ssl_key and ssl_crt
124
126
 
125
127
  vh += "
126
- <VirtualHost *:443>
128
+ <VirtualHost *:#{ssl_port.to_s}>
127
129
 
128
130
  ServerName #{vh_cnf.get('server_name')}
129
131
  #{server_aliases}
@@ -172,4 +174,4 @@ module Bonethug
172
174
 
173
175
  end
174
176
 
175
- end
177
+ end
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Bonethug
3
- VERSION = "0.0.97"
4
- BUILD_DATE = "2015-08-10 08:30:32 +1200"
3
+ VERSION = "0.0.98"
4
+ BUILD_DATE = "2015-11-28 12:23:10 +1300"
5
5
  end
6
6
 
data/scripts/mail CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/bin/bash
2
2
 
3
- cd /usr/share && sudo git clone https://github.com/joshdata/mailinabox
4
- sudo bash mailinabox/setup/start.sh
3
+ curl -s https://mailinabox.email/bootstrap.sh | sudo bash
5
4
 
6
- # need to go in and change the default listening ports in /etc/nginx/conf.d/local.conf
5
+ # this kills apache so it needs to be re-set up post install
6
+ # need to go in and change the default listening ports in /etc/nginx/conf.d/local.conf
@@ -0,0 +1,91 @@
1
+ #!/bin/bash
2
+
3
+ # -----------------------------------------------------
4
+ # install native stuff
5
+ # -----------------------------------------------------
6
+
7
+ # update
8
+ sudo apt-get update && sudo apt-get upgrade
9
+
10
+ # install the repo adding scripts
11
+ sudo apt-get install software-properties-common python-software-properties
12
+
13
+ # Update some stuff
14
+ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7
15
+
16
+ # add repos
17
+ sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main > /etc/apt/sources.list.d/passenger.list'
18
+ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
19
+ sudo apt-add-repository ppa:brightbox/ruby-ng
20
+
21
+ # update
22
+ sudo apt-get update && sudo apt-get upgrade
23
+
24
+ # install
25
+
26
+ # dev headers
27
+ sudo apt-get install build-essential
28
+ sudo apt-get install libcurl4-openssl-dev libssl-dev apache2-threaded-dev libapr1-dev libaprutil1-dev libapr1-dev libaprutil1-dev ruby2.1-dev
29
+ sudo apt-get install libmysqlclient-dev libmagickwand-dev libsqlite3-dev libxml2-dev libxslt1-dev
30
+
31
+ # regular packages
32
+ sudo apt-get install apache2-mpm-event
33
+ sudo apt-get install apt-transport-https ca-certificates
34
+ sudo apt-get install libapache2-mod-passenger libapache2-mod-qos libapache2-mod-spamhaus libapache2-mod-fastcgi libapache2-mod-evasive
35
+ sudo apt-get install curl php5-fpm php5 php5-cli php5-curl php5-gd php5-imagick php-apc php5-mysql
36
+ sudo apt-get install mysql-server mysql-client sqlite3
37
+ sudo apt-get install imagemagick
38
+ sudo apt-get install sshpass
39
+ sudo apt-get install libxml2 g++
40
+ sudo apt-get install git ruby2.1 wkhtmltopdf nodejs npm at
41
+
42
+
43
+ # -----------------------------------------------------
44
+ # Configure stuff
45
+ # -----------------------------------------------------
46
+
47
+ # php
48
+ sudo sed -i -e "s/listen = \/var\/run\/php5-fpm.sock/listen = 127.0.0.1:9000/g" /etc/php5/fpm/pool.d/www.conf
49
+
50
+ # secure mysql install
51
+ sudo mysql_secure_installation
52
+
53
+ # node
54
+ sudo ln -s /usr/bin/nodejs /usr/bin/node
55
+
56
+ # ruby
57
+ update-alternatives --set gem /usr/bin/gem2.1
58
+ update-alternatives --set ruby /usr/bin/ruby2.1
59
+
60
+
61
+ # Apache
62
+ # ------
63
+
64
+ # config modules
65
+
66
+ # php fpm
67
+ echo -e "<IfModule mod_fastcgi.c>\n AddHandler php5-fcgi .php\n Action php5-fcgi /php5-fcgi\n Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi\n FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -idle-timeout 250 -pass-header Authorization\n <Directory />\nRequire all granted\n </Directory>\n </IfModule>" | sudo tee /etc/apache2/conf-available/php-fpm.conf
68
+ sudo a2enconf php-fpm.conf
69
+
70
+ # enable modules
71
+ sudo a2enmod passenger actions fastcgi alias rewrite expires headers cache cache_disk ssl mpm_event
72
+
73
+ # -----------------------------------------------------
74
+ # Install Gems
75
+ # -----------------------------------------------------
76
+
77
+ # install some gems
78
+ sudo gem install bundler
79
+
80
+ # -----------------------------------------------------
81
+ # Node.js related
82
+ # -----------------------------------------------------
83
+
84
+ sudo npm install bower gulp -g
85
+
86
+ # -----------------------------------------------------
87
+ # Restart stuff
88
+ # -----------------------------------------------------
89
+
90
+ sudo service apache2 restart
91
+ sudo service php5-fpm restart
@@ -80,7 +80,7 @@ echo -e "<IfModule mod_spamhaus.c>\n MS_METHODS POST,PUT,OPTIONS,CONNECT\n MS_
80
80
  sudo a2enconf spamhauf.conf
81
81
 
82
82
  # enable modules
83
- sudo a2enmod actions fastcgi alias rewrite expires headers qos spamhaus evasive cache cache_disk ssl
83
+ sudo a2enmod actions fastcgi alias rewrite expires headers qos spamhaus evasive cache cache_disk ssl mpm_event
84
84
 
85
85
  # phpmyadmin apache 2.4
86
86
  sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bonethug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.97
4
+ version: 0.0.98
5
5
  platform: ruby
6
6
  authors:
7
7
  - azt3k
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-09 00:00:00.000000000 Z
11
+ date: 2015-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -345,6 +345,7 @@ files:
345
345
  - scripts/postgres
346
346
  - scripts/ubuntu-12.04
347
347
  - scripts/ubuntu-14.04
348
+ - scripts/ubuntu-14.04-apache2-mpm-event-php5-fpm-ruby2-node
348
349
  - scripts/ubuntu-14.04-dev
349
350
  - scripts/ubuntu-14.04-php5.5-mod_fastcgi
350
351
  - scripts/ubuntu.sh