File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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
8282sudo 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
8589sudo apt-get install -y nginx
8690sudo 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
You can’t perform that action at this time.
0 commit comments