This repository has been archived by the owner on Jul 11, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sam Kottler
committed
Jul 1, 2014
1 parent
7e0b1a6
commit 89d1e7f
Showing
5 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
name 'rubygems-repo' | ||
maintainer 'RubyGems.org ops team' | ||
|
||
version '0.0.13' | ||
version '0.0.15' | ||
|
||
depends 'aptly' | ||
depends 'nginx' | ||
depends 'rubygems' | ||
|
||
supports 'ubuntu' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# Cookbook Name:: rubygems-monitoring | ||
# Recipe:: nginx | ||
# | ||
|
||
node.default['nginx']['server_tokens'] = 'off' | ||
node.default['nginx']['default_site_enabled'] = false | ||
|
||
include_recipe 'nginx' | ||
|
||
template "#{node['nginx']['dir']}/sites-available/aptly" do | ||
source 'nginx.conf.erb' | ||
owner 'root' | ||
group 'root' | ||
mode '0644' | ||
notifies :reload, 'service[nginx]' | ||
end | ||
|
||
nginx_site 'aptly' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
server { | ||
listen 80 default_server; | ||
listen [::]:80 default_server ipv6only=on; | ||
|
||
root /opt/aptly/public; | ||
|
||
server_name repo01.common.rubygems.org; | ||
|
||
location / { | ||
autoindex on; | ||
} | ||
} |