The configuration items provided in the official website are briefly modified for reference only

If you don’t know about nginx configuration items, see here

Reverse proxy configuration

Location / {proxy_pass http://127.0.0.1:8082; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade; proxy_set_header Accept-Encoding gzip; }Copy the code

If you don’t know about nginx configuration items, see here

Code-server Configuration Method Change the default port and password of code-server nginx reverse proxy code-server