Skip to content

Instantly share code, notes, and snippets.

@mokevnin
Created February 19, 2012 11:48
Show Gist options
  • Select an option

  • Save mokevnin/1863405 to your computer and use it in GitHub Desktop.

Select an option

Save mokevnin/1863405 to your computer and use it in GitHub Desktop.
runit_service "resque" do
finish_script true
options :env => "production"
end
runit_service "ffmpeg"
template '/etc/nginx/conf.d/default.conf' do
source "nginx_host.conf.erb"
variables :deploy_to => '/u/apps/commersant/current', :resolver => '192.168.249.1',
:stream => 'http://ios-streamer.telemarker.ru/hls/kommersant.m3u8'
notifies :restart, resources(:service => "nginx")
end
template '/etc/nginx/nginx.conf' do
source "nginx.conf.erb"
variables :workers => 24
notifies :restart, resources(:service => "nginx")
end
postgresql_user "commersant" do
password ""
privileges :superuser => false, :createdb => false, :inherit => true, :login => true
end
postgresql_database "commersant_production" do
owner "commersant"
languages ["plpgsql"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment