nyanya commited on
Commit
b59a677
1 Parent(s): 9d88e78

add code-server

Browse files
Files changed (2) hide show
  1. nginx.conf +3 -3
  2. npm_packages.txt +1 -0
nginx.conf CHANGED
@@ -2,7 +2,7 @@ server {
2
  listen 4444 default_server;
3
  listen [::]:4444 default_server;
4
 
5
- server_name _; # Modify your domain name accordingly
6
 
7
  location / {
8
  # Serve GRADIO 7860
@@ -19,8 +19,8 @@ server {
19
  }
20
 
21
  location /code/ {
22
- # Serve GRADIO 7860
23
- proxy_pass http://localhost:8000;
24
  proxy_http_version 1.1;
25
  proxy_set_header Upgrade $http_upgrade;
26
  proxy_set_header Connection 'upgrade';
 
2
  listen 4444 default_server;
3
  listen [::]:4444 default_server;
4
 
5
+ server_name netora.link; # Modify your domain name accordingly
6
 
7
  location / {
8
  # Serve GRADIO 7860
 
19
  }
20
 
21
  location /code/ {
22
+ # Serve GRADIO 8080
23
+ proxy_pass http://localhost:8080/;
24
  proxy_http_version 1.1;
25
  proxy_set_header Upgrade $http_upgrade;
26
  proxy_set_header Connection 'upgrade';
npm_packages.txt CHANGED
@@ -1,2 +1,3 @@
1
  cloudflared
2
  localtunnel
 
 
1
  cloudflared
2
  localtunnel
3
+ code-server --unsafe-perm