summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLuke Ashe-Browne <xactly@gmail.com>2014-12-03 10:43:27 +0000
committerLuke Ashe-Browne <xactly@gmail.com>2014-12-03 10:43:27 +0000
commit32c6fe5385e9211b17f7dc71e36d07543a6066fa (patch)
tree82d2bac22a02222e14c6a2b85d7c24ecff4a47f1 /lib
parenta70e7d61acfa6eb41acf049ece0ca39ac70de09a (diff)
downloadgitlab-ce-32c6fe5385e9211b17f7dc71e36d07543a6066fa.tar.gz
adding notes to gitlab nginx conf
We want to make users aware that the nginx default config will conflict with the gitlab default_server conf file.
Diffstat (limited to 'lib')
-rw-r--r--lib/support/nginx/gitlab6
-rw-r--r--lib/support/nginx/gitlab-ssl4
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/support/nginx/gitlab b/lib/support/nginx/gitlab
index c8b769ace8e..182d3aaaa26 100644
--- a/lib/support/nginx/gitlab
+++ b/lib/support/nginx/gitlab
@@ -34,7 +34,11 @@ upstream gitlab {
## Normal HTTP host
server {
- listen 0.0.0.0:80 default_server;
+
+ listether remove "default_server" from the listen line below,
+ ## or delete the /etc/nginx/sites-enabled/default file. This will cause gitlab
+ ## to be served if you visit any address that your server responds to, eg.
+ ## the ip address of the server (http://x.x.x.x/)n 0.0.0.0:80 default_server;
listen [::]:80 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
diff --git a/lib/support/nginx/gitlab-ssl b/lib/support/nginx/gitlab-ssl
index 4e53d5e8b50..25b52ee17da 100644
--- a/lib/support/nginx/gitlab-ssl
+++ b/lib/support/nginx/gitlab-ssl
@@ -38,6 +38,10 @@ upstream gitlab {
## Redirects all HTTP traffic to the HTTPS host
server {
+ ## Either remove "default_server" from the listen line below,
+ ## or delete the /etc/nginx/sites-enabled/default file. This will cause gitlab
+ ## to be served if you visit any address that your server responds to, eg.
+ ## the ip address of the server (http://x.x.x.x/)
listen 0.0.0.0:80;
listen [::]:80 default_server;
server_name YOUR_SERVER_FQDN; ## Replace this with something like gitlab.example.com