Skip to content

Commit eeb092e

Browse files
committed
Merge pull request #3 from dosire/implement_phusion_security_enhancements
Change permissions of gitolite and yml.
2 parents 19d61a4 + 8d8385f commit eeb092e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

install/debian_ubuntu_aws.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ sudo chown git:git /home/git/share/gitolite/hooks/common/post-receive
8181
# Set the first occurrence of host in the Gitlab config to the publicly available domain name
8282
sudo sed -i '0,/host/s/localhost/'`wget -qO- http://instance-data/latest/meta-data/public-hostname`'/' /home/gitlab/gitlab/config/gitlab.yml
8383

84+
# Tighten security
85+
sudo -u git chmod 750 /home/git/gitolite
86+
sudo -u gitlab chmod 660 /home/gitlab/gitlab/config/*.yml
87+
8488
# Install and configure Nginx
8589
sudo apt-get install -y nginx
8690
sudo wget https://raw.github.com/gitlabhq/gitlab-recipes/master/nginx/gitlab -P /etc/nginx/sites-available/
@@ -135,4 +139,4 @@ echo '5iveL!fe'
135139

136140
# Monitoring commands for the web server:
137141
# sudo tail -f /var/log/nginx/access.log
138-
# sudo tail -f /var/log/nginx/error.log
142+
# sudo tail -f /var/log/nginx/error.log

0 commit comments

Comments
 (0)