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
Copy file name to clipboardExpand all lines: doc/self-hosted/index.md
+15
Original file line number
Diff line number
Diff line change
@@ -74,5 +74,20 @@ OPTIONS
74
74
75
75
> To ensure the connection between you and your server is encrypted view our guide on [securing your setup](../security/ssl.md)
76
76
77
+
### Nginx Reverse Proxy
78
+
Nginx is for reverse proxy. Here is a example virtual host that works with code-server. Please also pass --allow-http. You can also use certbot by EFF to get a ssl certificates for free.
79
+
```
80
+
server {
81
+
listen 80;
82
+
listen [::]:80;
83
+
server_name code.example.com code.example.org;
84
+
location / {
85
+
proxy_pass http://localhost:8443/;
86
+
proxy_set_header Upgrade $http_upgrade;
87
+
proxy_set_header Connection upgrade;
88
+
}
89
+
}
90
+
```
91
+
77
92
### Help
78
93
Use `code-server -h` or `code-server --help` to view the usage for the cli. This is also shown at the beginning of this section.
0 commit comments