how to use code-server connect to my own code-marketplace server in my private network(not connect Internet) #6206
-
Hi, I have setup a code-marketplace server(using a TLS-terminating reverse proxy with NGINX) in my private network already, and I have Open a brower for testing https://myserver.domain.com/ , and then I can see the Output “Marketplace is running” I add some extensions to the code-marketplace server with the following command: then I use the following command to make a query and check one of the URLs in the response:
I get some responses from the query so I think the code-marketplace server is worked OK. then I run the following command(CentOS 7) to up the code-server:
after that, I use the code server with my brower http://localhost:8080 , and then it seems can't connect to my code-marketplace server to get the extensions, when I click the Extensions , it show error messages which is "Error while fetching extensions, getaddrinfo ENOTFFOUND open-vsx.org" I have no idea how to fix it if anyone can give me a hand. Thank you very much ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Since you are running it with systemd you will need to set the environment variable in the systemd service file (it will not read the variables in your current terminal session). Under the You could also put the environment variable in a file and use |
Beta Was this translation helpful? Give feedback.
Dear @code-asher , thank you for your help !
I have a good news to tell you that my code-server can connect to code-marketplace server now.
I have make a mistake to the file /usr/lib/systemd/system/[email protected]
I made a change from
Environment='EXTENSIONS_GALLERY={"serviceUrl":"https://test888.com/"}'
to
Environment='EXTENSIONS_GALLERY={"serviceUrl":"https://test888.com/api"}'
so that my code-server can connect to my code-marketplace server(test888.com) now.
Thank you very much for your great help !