Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Staff
Public Gitlab
Commits
01520ade
Commit
01520ade
authored
11 years ago
by
GitLab
Browse files
Options
Download
Email Patches
Plain Diff
Oops, reverting accidentally overwritten nginx sample config
parent
d976492b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
lib/support/nginx/gitlab
lib/support/nginx/gitlab
+13
-3
No files found.
lib/support/nginx/gitlab
View file @
01520ade
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment