# @sourcegraph: This file should be kept in sync with https://github.com/sourcegraph/sourcegraph/blob/master/cmd/server/shared/assets/nginx.conf # # You can adjust the configuration to add additional TLS or HTTP features. # Read more at https://docs.sourcegraph.com/admin/nginx error_log stderr; pid /var/run/nginx.pid; # Do not remove. The contents of sourcegraph_main.conf can change between # versions and may include improvements to the configuration. include nginx/sourcegraph_main.conf; events { } http { server_tokens off; # SAML redirect response headers are sometimes large proxy_buffer_size 128k; proxy_buffers 8 256k; proxy_busy_buffers_size 256k; # Do not remove. The contents of sourcegraph_http.conf can change between # versions and may include improvements to the configuration. include nginx/sourcegraph_http.conf; access_log off; upstream backend { # Do not remove. The contents of sourcegraph_backend.conf can change # between versions and may include improvements to the configuration. include nginx/sourcegraph_backend.conf; } server { # Do not remove. The contents of sourcegraph_server.conf can change # between versions and may include improvements to the configuration. include nginx/sourcegraph_server.conf; listen 7080; location / { proxy_pass http://backend; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; # SAML redirect response headers are sometimes large proxy_buffer_size 128k; proxy_buffers 8 256k; proxy_busy_buffers_size 256k; } } }