Skip to content

Instantly share code, notes, and snippets.

@luceos
Created October 18, 2016 06:35
Show Gist options
  • Save luceos/c2d5a63a89fa5be5a2fe7cfd34123402 to your computer and use it in GitHub Desktop.
Save luceos/c2d5a63a89fa5be5a2fe7cfd34123402 to your computer and use it in GitHub Desktop.
gitlab.rb
nginx['custom_gitlab_server_config'] = "location ~ ^\/satis\/ {\n root /var/www/satis/public;\n index index.html index.php;\n rewrite ^\/satis(.*\.[json|html])$ $1 break;\n try_files $uri @satis;\n }\n location @satis {\n root /var/www/satis/public;\n fastcgi_pass unix:/var/run/php/php-fpm.sock;\n include /etc/gitlab/nginx/fastcgi_params;\n }\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment