mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
We have a number of docs links in the product that point to the old doc site. Method: - Search the repo for `docs.sourcegraph.com` - Exclude the `doc/` dir, all test fixtures, and `CHANGELOG.md` - For each, replace `docs.sourcegraph.com` with `sourcegraph.com/docs` - Navigate to the resulting URL ensuring it's not a dead link, updating the URL if necessary Many of the URLs updated are just comments, but since I'm doing a manual audit of each URL anyways, I felt it was worth it to update these while I was at it.
53 lines
1.7 KiB
Nginx Configuration File
53 lines
1.7 KiB
Nginx Configuration File
# This config was generated by Sourcegraph.
|
|
# You can adjust the configuration to add additional TLS or HTTP features.
|
|
# Read more at https://sourcegraph.com/docs/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;
|
|
}
|
|
}
|
|
}
|