You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 9, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: configure/lang/typescript/README.md
+31-9Lines changed: 31 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This folder contains the deployment manifests for the [Javascript/Typescript lan
4
4
5
5
## Installation instructions
6
6
7
-
### Setup TLS/SSL
7
+
### Setup TLS/SSL (Highly recommended, optional)
8
8
9
9
TLS/SSL is required for secure communication with the language server. Once you have completed ["Configure TLS/SSL"](../../../docs/configure.md#configure-tlsssl) in [docs/configure.md](../../../docs/configure.md#configure-tlsssl), for your overall Sourcegraph instance, you'll need to configure TLS/SSL for the Javascript/Typescript language server as well.
10
10
@@ -43,7 +43,7 @@ The Javascript/Typescript language server needs it's own domain (e.g. `typescrip
43
43
**WARNING:** Do NOT commit the actual TLS cert and key files to your fork (unless your fork is
44
44
private **and** you are okay with storing secrets in it).
HTTP basic authentication is used to prevent unauthorized access to the language server. At a high level, you'll create a secret then put it in both [configure/lang/typescript/lang-typescript.Ingress.yaml](lang-typescript.Ingress.yaml) and in your Sourcegraph global settings so that logged-in users are authenticated when their browser makes requests to the Javascript/Typescript language server.
49
49
@@ -76,13 +76,6 @@ _These instructions are derived from https://kubernetes.github.io/ingress-nginx/
1. Add the following fields to your Sourcegraph global settings (`$PASSWORD` is that password that you created above, and `$TYPESCRIPT_DOMAIN_NAME` is the domain name that you are using for your Javascript/Typescript language server instance):
### Apply the Javascript/Typescript language server configuration to the cluster
87
80
88
81
1. Add the `kubectl` command that applies the Javascript/Typescript language server configuration to [kubectl-apply-all.sh](../../../kubectl-apply-all.sh)
@@ -96,3 +89,32 @@ _These instructions are derived from https://kubernetes.github.io/ingress-nginx/
96
89
```console
97
90
./kubectl-apply-all.sh
98
91
```
92
+
93
+
### Configure Sourcegraph to use the Typescript language server
94
+
95
+
Add the following fields to your Sourcegraph global settings (`$PASSWORD` is the HTTP basic auth password that you created above, and `$TYPESCRIPT_DOMAIN_NAME` is the domain name that you are using for your Typescript language server instance):
If you choose not to expose the language server to the internet yet, you need to forward a local port to the language server so that your browser can connect to it:
0 commit comments