1
1
###############
2
- # api calls from probes get to VSCode /healthz endpoint
2
+ # api calls from probes get to code-server /healthz endpoint
3
3
###############
4
4
location = ${NB_PREFIX}/api {
5
- return 302 /vscode /healthz/;
5
+ return 302 /codeserver /healthz/;
6
6
access_log off;
7
7
}
8
8
9
9
location ${NB_PREFIX}/api/ {
10
- return 302 /vscode /healthz/;
10
+ return 302 /codeserver /healthz/;
11
11
access_log off;
12
12
}
13
13
###############
@@ -38,26 +38,26 @@ location /api/kernels/ {
38
38
###############
39
39
40
40
###############
41
- # root and prefix get to VSCode endpoint
41
+ # root and prefix get to code-server endpoint
42
42
###############
43
43
location = ${NB_PREFIX} {
44
- return 302 $custom_scheme://$http_host/vscode /;
44
+ return 302 $custom_scheme://$http_host/codeserver /;
45
45
}
46
46
47
47
location ${NB_PREFIX}/ {
48
- return 302 $custom_scheme://$http_host/vscode /;
48
+ return 302 $custom_scheme://$http_host/codeserver /;
49
49
}
50
50
51
- location = /vscode {
52
- return 302 $custom_scheme://$http_host/vscode /;
51
+ location = /codeserver {
52
+ return 302 $custom_scheme://$http_host/codeserver /;
53
53
}
54
54
55
55
location = / {
56
- return 302 $custom_scheme://$http_host/vscode /;
56
+ return 302 $custom_scheme://$http_host/codeserver /;
57
57
}
58
58
59
- location /vscode / {
60
- rewrite ^/vscode /(.*)$ /$1 break;
59
+ location /codeserver / {
60
+ rewrite ^/codeserver /(.*)$ /$1 break;
61
61
# Standard RStudio/NGINX configuration
62
62
proxy_pass http://127.0.0.1:8787;
63
63
proxy_http_version 1.1;
@@ -66,6 +66,6 @@ location /vscode/ {
66
66
proxy_read_timeout 20d;
67
67
proxy_set_header X-Forwarded-Proto $custom_scheme;
68
68
69
- access_log /var/log/nginx/vscode .access.log json if=$loggable;
69
+ access_log /var/log/nginx/codeserver .access.log json if=$loggable;
70
70
}
71
71
###############
0 commit comments