Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
418e7c258803
Commit
72db0c4d
authored
Feb 04, 2015
by
Dmitriy Zaporozhets
Browse files
Merge pull request #8395 from sbeh/master
Socket [::]:123 on Linux listens on IPv4 and IPv6
parents
990e4cc08097
58efcffaea5c
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/support/nginx/gitlab-ssl
View file @
418e7c25
...
...
@@ -39,7 +39,7 @@ upstream gitlab {
## Redirects all HTTP traffic to the HTTPS host
server {
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_tokens off; ## Don't show the nginx version number, a security best practice
return 301 https://$server_name$request_uri;
...
...
@@ -51,7 +51,7 @@ server {
## HTTPS host
server {
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_tokens off; ## Don't show the nginx version number, a security best practice
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