How To Set Up the code-server Cloud IDE Platform on Ubuntu 20.04 - FAILES

As I was following through the tutorial: “How To Set Up the code-server Cloud IDE Platform on Ubuntu 20.04”

last step was editing the file: code-server.conf, with:

server {
    listen 80;
    listen [::]:80;

    server_name code-server.your-domain;

    location / {
      proxy_pass http://localhost:8080/;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection upgrade;
      proxy_set_header Accept-Encoding gzip;

“your.domain” i replaced with: and saved the and symlinked.

i thereafter get a test failure running:

sudo nginx -t

“nginx: [emerg] unknown directive “SERVER” in /etc/nginx/sites-enabled/data-entanglement:1”

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

I’ve just tested this configuration and it seems to be working as expected:

nginx: the configuration file  /etc/nginx/sites-enabled/data-entanglement syntax is ok

Have you made any other changes to your Nginx configuration file at /etc/nginx/nginx.conf?

Regards, Bobby