|  
 
 
folder;.   28.    # @gitlab is a named location for the upstream fallback, see below   29.    try_files $uri $uri/index.html $uri.html @gitlab;   30.  }   31.   32.  # if a file, which is not found in the root folder is requested,   33.  # then the proxy pass the request to the upsteam (gitlab unicorn)   34.  location @gitlab {   35.    proxy_read_timeout 300; # 36.    proxy_connect_timeout 300; #    37.    proxy_redirect     off;   38.   39.    proxy_set_header   X-Forwarded-Proto $scheme;   40.    proxy_set_header   Host              $http_host;   41.    proxy_set_header   X-Real-IP         $remote_addr;   42.   43.    proxy_pass http://gitlab;   44.  }   45.}   File Edit Options Buffers Tools Help                                                                                                           # GITLAB # Maintainer: @randx # App Version: 4.0
upstream gitlab {   server unix:/home/git/gitlab/tmp/sockets/gitlab.socket; } 
server {   listen *:443;         # e.g., listen 192.168.1.1:80;   ssl                  on;   ssl_certificate      /etc/nginx/sites-available/server.crt;   ssl_certificate_key  /etc/nginx/sites-available/server.key; 
  server_name localhost;   #ubuntu1204-dell source.myserver.com;     # e.g., server_name source.example.com;   root /home/git/gitlab/public; 
  
  # individual nginx logs for this gitlab vhost   access_log  /var/log/nginx/gitlab_access.log;   error_log   /var/log/nginx/gitlab_error.log; 
  location / {     # serve static files from defined root folder;.     # @gitlab is a named location for the upstream fallback, see below     t 上一页  [1] [2] [3] [4] 下一页  
 |