Skip to content

Instantly share code, notes, and snippets.

@aursu
Last active June 28, 2018 22:45
Show Gist options
  • Save aursu/8a0ecd96761b40023bb0f2437ce2a7aa to your computer and use it in GitHub Desktop.
Save aursu/8a0ecd96761b40023bb0f2437ce2a7aa to your computer and use it in GitHub Desktop.
GitLab embedded nginx config
# root 10516 0.0 0.0 37940 3128 ? Ss Jun07 0:00 nginx: master process /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx
# This file is managed by gitlab-ctl. Manual changes will be
# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
# and run `sudo gitlab-ctl reconfigure`.
user gitlab-www gitlab-www;
worker_processes 8;
error_log stderr;
pid nginx.pid;
daemon off;
events {
worker_connections 10240;
}
http {
server_names_hash_bucket_size 64;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
gzip on;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
include /opt/gitlab/embedded/conf/mime.types;
proxy_cache_path proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2;
proxy_cache gitlab;
include /etc/nginx/conf.d/00-proxy.conf
include /etc/nginx/conf.d/99-nginx-logging.conf
include /var/opt/gitlab/nginx/conf/gitlab-http.conf;
include /var/opt/gitlab/nginx/conf/nginx-status.conf;
}
@aursu
Copy link
Author

aursu commented Jun 25, 2018

@aursu
Copy link
Author

aursu commented Jun 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment