Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Make config dir match etc layout.
Browse files Browse the repository at this point in the history
Also add a logrotate.d for nginx 30-day rotations.
  • Loading branch information
jsha committed Jan 18, 2016
1 parent 70f4984 commit 25403ac
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ VAGRANTFILE_API_VERSION = "2"
Vagrant.configure("2") do |config|
config.vm.box = "trusty32"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box"
config.vm.provision "file", source: "~/.btconfig.json", destination: "~/.btconfig.json"
config.vm.provision :shell, privileged: false, path: "bin/vagrant_up.sh"
config.vm.network :forwarded_port, host: 3000, guest: 3000
config.vm.provision "file", source: "~/.btconfig.json", destination: "/etc/blocktogether/config.json"
end
1 change: 1 addition & 0 deletions bin/init_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
sudo install -o "$USER" -d /etc/blocktogether
sudo install -o "$USER" -d /data/blocktogether
cp -a /vagrant/config/* /etc/blocktogether/
cp ~/.btconfig.json /etc/blocktogether/config.json
12 changes: 12 additions & 0 deletions config/etc/logrotate.d/nginx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/var/log/nginx/*.log {
daily
missingok
rotate 30
compress
delaycompress
create 0644 www-data adm
sharedscripts
postrotate
invoke-rc.d nginx rotate >/dev/null 2>&1
endscript
}
1 change: 1 addition & 0 deletions config/etc/nginx/sites-enabled/blocktogether.org
1 change: 1 addition & 0 deletions config/etc/nginx/sites-enabled/localhost-status

0 comments on commit 25403ac

Please sign in to comment.