By kogiaone
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.