install: remove HSTS config from the default headers, Fixes #206

This commit is contained in:
Sameer Naik 2014-11-23 11:06:26 +05:30
parent 7327aa49ba
commit 5929751a07

View File

@ -54,6 +54,9 @@ sudo -u git -H git clone -q -b v${GITLAB_VERSION} --depth 1 \
cd ${GITLAB_INSTALL_DIR}
# remove HSTS config from the default headers, we configure it in nginx
sed "/headers\['Strict-Transport-Security'\]/d" -i app/controllers/application_controller.rb
# copy default configurations
cp lib/support/nginx/gitlab /etc/nginx/sites-enabled/gitlab
sudo -u git -H cp config/gitlab.yml.example config/gitlab.yml