Question

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

Posted January 9, 2021 277 views
NginxDevelopmentInitial Server SetupCloud Computing

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"

edited by MattIPv4

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.

×
Submit an Answer
1 answer

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