Hi,

I'm sorry but I don't have the time to dive into this. Maybe someone
else can help or you can get paid support.

Is it really needed to use another Nginx server?

Best regards,
Sytse Sijbrandij
CEO GitLab B.V.


On Sat, Jan 24, 2015 at 7:02 AM, Brendan Pike <[email protected]> wrote:
> Thank you Sytse
>
> I'm still struggling after reading that and trying so many things.
>
> Here's my nginx config.
>
> upstream gitlab {
>   server unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket
> fail_timeout=0;
> }
>
> server {
>   listen 0.0.0.0:80;
>   listen [::]:80 default_server;
>   server_name git.myserver.com.au;
>   server_tokens off;
>   return 301 https://$server_name$request_uri;
>   access_log  /var/log/nginx/gitlab_access.log;
>   error_log   /var/log/nginx/gitlab_error.log;
> }
>
>
> server {
>   listen 0.0.0.0:443 ssl;
>   listen [::]:443 ssl default_server;
>   server_name git.myserver.com.au;
>   server_tokens off;
>   root /opt/gitlab/embedded/service/gitlab-rails/public;
>
>   client_max_body_size 20m;
>
>   ssl on;
>   ssl_certificate /etc/nginx/ssl/git_myserver_com_au.crt;
>   ssl_certificate_key /etc/nginx/ssl/git_myserver_com_au.key;
>
>   ssl_ciphers
> "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
>   ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
>   ssl_prefer_server_ciphers on;
>   ssl_session_cache shared:SSL:10m;
>   ssl_session_timeout 5m;
>
>   access_log  /var/log/nginx/gitlab_access.log;
>   error_log   /var/log/nginx/gitlab_error.log;
>
>   location / {
>     try_files $uri $uri/index.html $uri.html @gitlab;
>   }
>
>   location @gitlab {
>     gzip off;
>
>     proxy_read_timeout      300;
>     proxy_connect_timeout   300;
>     proxy_redirect          off;
>
>     proxy_set_header    Host                $http_host;
>     proxy_set_header    X-Real-IP           $remote_addr;
>     proxy_set_header    X-Forwarded-Ssl     on;
>     proxy_set_header    X-Forwarded-For     $proxy_add_x_forwarded_for;
>     proxy_set_header    X-Forwarded-Proto   $scheme;
>     proxy_set_header    X-Frame-Options     SAMEORIGIN;
>
>     proxy_pass http://gitlab;
>   }
>
> I don't find any errors in nginx, but I get a loop when visiting the page;
>
> eg.
>
> xx.xxx.212.89 - - [24/Jan/2015:14:49:36 +0000] "GET / HTTP/1.1" 301 178 "-"
> "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101
> Firefox/35.0"
> *repeat many time*
>
> :(  please help
>
> --
> You received this message because you are subscribed to the Google Groups
> "GitLab" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gitlabhq/f0f2fae9-f605-41b5-8436-abd7dd2bcd31%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/CAJTzhG_0_9a8wKtnhLfrtq9jiYgBrOwmiBLqfMLBSva%2BRdmzxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to