Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
c3a30bb481
4 changed files with 16 additions and 6 deletions
|
|
@ -19,6 +19,9 @@ end
|
|||
execute "rvm deps" do
|
||||
command "yum install -y bzip2"
|
||||
end
|
||||
execute "install mysql" do
|
||||
command "yum install -y mysql mysql-server mysql-devel"
|
||||
end
|
||||
|
||||
def harden_ruby(ruby_string)
|
||||
Dir.glob("/usr/local/rvm/wrappers/#{ruby_string}/*").each do |file|
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ url: 'joindiaspora.com'
|
|||
cert_location: '/usr/local/nginx/conf/diaspora.crt'
|
||||
key_location: '/usr/local/nginx/conf/diaspora.key'
|
||||
s3_bucket: "https://joindiaspora.s3.amazonaws.com"
|
||||
s3_path: "/uploads/images/'
|
||||
s3_path: "/uploads/images/"
|
||||
|
|
|
|||
|
|
@ -6,11 +6,18 @@ execute "compile daemontools" do
|
|||
command "cd /package/admin/daemontools-0.76 && ./package/install"
|
||||
end
|
||||
|
||||
execute "mongo run" do
|
||||
command "mkdir -p /service/mongo && echo '#!/bin/sh' > /service/mongo/run && echo 'exec /usr/bin/mongod' >> /service/mongo/run"
|
||||
#execute "mongo run" do
|
||||
# command "mkdir -p /service/mongo && echo '#!/bin/sh' > /service/mongo/run && echo 'exec /usr/bin/mongod' >> /service/mongo/run"
|
||||
#end
|
||||
#execute "executable" do
|
||||
# command "chmod -R 755 /service/mongo"
|
||||
#end
|
||||
|
||||
execute "mysql run" do
|
||||
command "mkdir -p /service/mysql && echo '#!/bin/sh' > /service/mysql/run && echo 'exec /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --user=mysql' >> /service/mysql/run"
|
||||
end
|
||||
execute "executable" do
|
||||
command "chmod -R 755 /service/mongo"
|
||||
command "chmod -R 755 /service/mysql"
|
||||
end
|
||||
|
||||
config = YAML.load_file("/usr/local/app/diaspora/chef/cookbooks/common/files/default/thins.yml")
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ http {
|
|||
|
||||
location /assets {
|
||||
expires 1d;
|
||||
add_header Cache-Control public
|
||||
add_header Cache-Control public;
|
||||
}
|
||||
|
||||
location / {
|
||||
|
|
@ -114,7 +114,7 @@ http {
|
|||
}
|
||||
|
||||
<% unless @s3_bucket.blank? || @s3_path.blank? %>
|
||||
<%= "rewrite ^/uploads/images/(.*)$ #{@s3_bucket}#{@s3_path}$1 permanent; %>
|
||||
<%= "rewrite ^/uploads/images/(.*)$ #{@s3_bucket}#{@s3_path}$1 permanent;" %>
|
||||
<% end %>
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue