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: docs/guides/render/README.md
+68-1Lines changed: 68 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,10 +19,77 @@ Render starts the server automatically.
19
19
20
20
## Access OpenVSCode Server
21
21
22
-
When the deployment is complete, you will see your server listed in the <kbd>Services</kbd> section of the Dashboard. In there, you can see your server URL to access OpenVSCode Server.
22
+
When the deployment is complete, you will see your server listed in the <kbd>Services</kbd> section of the Dashboard. Click the dashboard entry to see your server URL to access OpenVSCode Server.
23
23
24
24

25
25
26
26
## Teardown
27
27
28
28
Delete the service in your dashboard.
29
+
30
+
31
+
---
32
+
33
+
34
+
# Deploy Secure OpenVSCode Server to Render with OAuth
35
+
36
+
## Prerequisites
37
+
38
+
To complete this guide, you need:
39
+
* a [Render](https://render.com/) account
40
+
* an account with the [OAuth Provider](https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/oauth_provider) of your choice.
41
+
42
+
## Set up provider account
43
+
44
+
Consult the [OAuth2-Proxy Provider Configuration Documentation](https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/oauth_provider/), and select at least one provider to use for authenticating users of Open VSCode. Create an OAuth application with your provider of choice. For the Homepage/Base URI, enter a placeholder like `https:openvscode-secure-server.onrender.com`, and for the Callback/Redirect URI, enter a placeholder like `https:openvscode-secure-server.onrender.com/oauth2/callback`. You will update the OAuth2 app with your URIs once your OAuth2-Proxy Server deployment is complete. Save the Client Secret and ID in a secure place like a password manager for later reference.
45
+
46
+
47
+
## Set up Open VSCode Server
48
+
49
+
To deploy Open VSCode to Render as a private service, click the following button and follow the instructions:
50
+
51
+
[](https://render.com/deploy?repo=https://github.com/render-examples/openvscode-private-server)
52
+
53
+
After that, create a name for the service group (for example `Private OpenVSCode Server`) and click <kbd>Apply</kbd>.
54
+
55
+
## Start the server
56
+
57
+
Render starts the server automatically. Copy the service address to the clipboard:
58
+

59
+
60
+
61
+
## Set up OAuth2-Proxy server
62
+
63
+
Fork the [OAuth2-Proxy Render Example Repository](https://github.com/dnilasor/oauth2-proxy). In the Render Dashboard, select <kbd>YAML</kbd> from the side navigation and click the <kbd>New From YAML</kbd> button:
64
+

65
+
66
+
After that, use your connected GitHub account or the full URL of your public OAuth-Proxy fork to create a deployment based on the fork.
67
+
68
+
## Configure OAuth server
69
+
70
+
Create a name for the service group (for example, `Secure Access To Open VSCode`). Next, enter the environment variable values to configure OAuth.
71
+
72
+
- For `OAUTH2_PROXY_UPSTREAMS` enter http://<ServiceAddressforPrivateOpenVSCodeServer>
73
+
- For `OAUTH2_PROXY_CLIENT_ID` enter the Client ID from your OAuth App
74
+
- For `OAUTH2_PROXY_CLIENT_SECRET` enter the Client Secret from your OAuth App or password manager
75
+
- For `OAUTH2_PROXY_PROVIDER` enter the name of your OAuth provider
76
+
77
+

78
+
79
+
## Start the server
80
+
81
+
Render starts the server automatically.
82
+
83
+
## Access OpenVSCode Server
84
+
85
+
When the deployment is complete, you will see your OAuth server listed in the <kbd>Services</kbd> section of the Dashboard. Click the dashboard entry to see your server URL to access OpenVSCode Server. You will be prompted to authenticate and then redirected to the private Open VSCode service.
0 commit comments