Skip to content
Snippets Groups Projects
Commit bdd4eca3 authored by Jeroen Nijhof's avatar Jeroen Nijhof
Browse files

Fix nginx templator for ssl and change the quiet option for pull

parent 7f0ba244
No related branches found
No related tags found
1 merge request!41Fix nginx templator for ssl and change the quiet option for pull
Loading
Loading
@@ -31,8 +31,12 @@ def main
tmp_dir = File.join('/tmp/gitlab', relative_path)
 
unless 'no-clone' == ARGV[0]
system("rm -rf #{tmp_dir}")
system("git clone #{ENV['PROGRESS'] ? nil : '--quiet'} -- #{clone_url} #{tmp_dir}")
if File.exist?("#{tmp_dir}/.git/config")
system("git -C #{tmp_dir} pull #{ENV['PROGRESS'] ? nil : '--quiet'}")
else
system("rm -rf #{tmp_dir}")
system("git clone #{ENV['PROGRESS'] ? nil : '--quiet'} -- #{clone_url} #{tmp_dir}")
end
end
 
$progress.puts 'Deleting files that should be excluded'
Loading
Loading
# Nginx config file
 
server {
listen 80;
server_name doc.gitlab.com;
return 301 $scheme://docs.gitlab.com$request_uri;
listen 80;
server_tokens off;
return 301 https://docs.gitlab.com$request_uri;
}
 
server {
listen 80; ## listen for ipv4; this line is default and implied
listen 443;
server_name docs.gitlab.com;
server_name_in_redirect off;
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
 
root /srv/doc-gitlab-com;
index README.html index.html index.htm;
ssl on;
ssl_certificate /etc/ssl/docs.gitlab.com.crt;
ssl_certificate_key /etc/ssl/docs.gitlab.com.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
 
server_name docs.gitlab.com;
root /srv/doc-gitlab-com;
index README.html index.html index.htm;
 
location / {
try_files $uri $uri/ =404;
}
location / {
try_files $uri $uri/ =404;
}
 
rewrite ^/ci/(.*)$ /ce/ci/$1 permanent;
error_page 404 /404.html;
rewrite ^/ci/(.*)$ /ce/ci/$1 permanent;
error_page 404 /404.html;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment