Report this

What is the reason for this report?

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

Posted on January 9, 2021

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: data-entanglement.com 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”



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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.