]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
gitlab - more nginx
authorPhilipp Dallig <philipp.dallig@pixelpark.com>
Thu, 16 Jun 2016 16:02:25 +0000 (18:02 +0200)
committerPhilipp Dallig <philipp.dallig@pixelpark.com>
Thu, 16 Jun 2016 16:02:25 +0000 (18:02 +0200)
customer/pixelpark/git01.pixelpark.com.yaml

index e6faeb18cf4f8b42428fccfcd36554be7ee21f01..f03bffad77857b8f20569b339ae6ee5726253399 100644 (file)
@@ -8,12 +8,11 @@ nginx::nginx_vhosts:
     server_name:
       - git.pixelpark.com
       - git01.pixelpark.com
-    www_root: /opt/gitlab/embedded/service/gitlab-rails/public/
     ssl: true
     ssl_cert: /etc/pki/tls/certs/wildcard.pixelpark.com-cert.pem
     ssl_key: /etc/pki/tls/private/wildcard.pixelpark.com-key.pem
     rewrite_to_https: true
-    proxy: unix:/var/opt/gitlab/gitlab-workhorse/socket
+    proxy: http://unix:/var/opt/gitlab/gitlab-workhorse/socket
     proxy_set_header:
       - 'X-Forwarded-Proto "https"'
       - 'X-Forwarded-For $proxy_add_x_forwarded_for'
@@ -21,4 +20,14 @@ nginx::nginx_vhosts:
       - 'Host $host'
       - 'X-Forwarded-Ssl on'
     proxy_cache: gitlab
-    client_max_body_size: '250m'
\ No newline at end of file
+    client_max_body_size: '250m'
+    vhost_cfg_append:
+      'error_page 404': '/404.html'
+      'error_page 422': '/422.html'
+      'error_page 500': '/500.html'
+      'error_page 502': '/502.html'
+    locations:
+      docroot: 
+        www_root: /opt/gitlab/embedded/service/gitlab-rails/public/
+        internal: true
+        location: '~ ^/(404|422|500|502)\.html$'