Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
72db0c4d
Commit
72db0c4d
authored
Feb 04, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8395 from sbeh/master
Socket [::]:123 on Linux listens on IPv4 and IPv6
parents
60b80541
434c4a2b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/support/nginx/gitlab-ssl
lib/support/nginx/gitlab-ssl
+2
-2
No files found.
lib/support/nginx/gitlab-ssl
View file @
72db0c4d
...
@@ -39,7 +39,7 @@ upstream gitlab {
...
@@ -39,7 +39,7 @@ upstream gitlab {
## Redirects all HTTP traffic to the HTTPS host
## Redirects all HTTP traffic to the HTTPS host
server {
server {
listen 0.0.0.0:80;
listen 0.0.0.0:80;
listen [::]:80 default_server;
listen [::]:80
ipv6only=on
default_server;
server_name YOUR_SERVER_FQDN; ## Replace this with something like gitlab.example.com
server_name YOUR_SERVER_FQDN; ## Replace this with something like gitlab.example.com
server_tokens off; ## Don't show the nginx version number, a security best practice
server_tokens off; ## Don't show the nginx version number, a security best practice
return 301 https://$server_name$request_uri;
return 301 https://$server_name$request_uri;
...
@@ -51,7 +51,7 @@ server {
...
@@ -51,7 +51,7 @@ server {
## HTTPS host
## HTTPS host
server {
server {
listen 0.0.0.0:443 ssl;
listen 0.0.0.0:443 ssl;
listen [::]:443 ssl default_server;
listen [::]:443
ipv6only=on
ssl default_server;
server_name YOUR_SERVER_FQDN; ## Replace this with something like gitlab.example.com
server_name YOUR_SERVER_FQDN; ## Replace this with something like gitlab.example.com
server_tokens off; ## Don't show the nginx version number, a security best practice
server_tokens off; ## Don't show the nginx version number, a security best practice
root /home/git/gitlab/public;
root /home/git/gitlab/public;
...
...
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