Commit 01520ade authored by GitLab's avatar GitLab
Browse files

Oops, reverting accidentally overwritten nginx sample config

parent d976492b
......@@ -20,10 +20,20 @@ upstream gitlab {
}
server {
listen *:80 default_server; # e.g., listen 192.168.1.1:80; In most cases *:80 is a good idea
server_name YOUR_SERVER_FQDN; # e.g., server_name source.example.com;
listen 80 default;
server_name git.sphere.ly;
rewrite ^ https://$server_name$request_uri? permanent;
}
server {
listen 443 default ssl; # e.g., listen 192.168.1.1:80; In most cases *:80 is a good idea
server_name git.sphere.ly; # e.g., server_name source.example.com;
server_tokens off; # don't show the version number, a security best practice
root /home/git/gitlab/public;
ssl_certificate /etc/ssl/git.sphere.ly/git.sphere.ly.crt;
ssl_certificate_key /etc/ssl/git.sphere.ly/git.sphere.ly.key;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
# Increase this if you want to upload large attachments
# Or if you want to accept large git objects over http
......@@ -44,7 +54,7 @@ server {
location @gitlab {
# If you use https make sure you disable gzip compression
# to be safe against BREACH attack
# gzip off;
gzip off;
proxy_read_timeout 300; # Some requests take more than 30 seconds.
proxy_connect_timeout 300; # Some requests take more than 30 seconds.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment