Last active
June 28, 2018 22:45
-
-
Save aursu/8a0ecd96761b40023bb0f2437ce2a7aa to your computer and use it in GitHub Desktop.
GitLab embedded nginx config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://nginx.org/en/docs/http/websocket.html