Code-server: Set up user accounts instead of coder

Created on 21 Nov 2019  路  4Comments  路  Source: cdr/code-server

Description

We would like to specify a username to be used rather than the default coder. Is that something possible, and how?

Related Issues

This would also be a nice feature for implementing some of the auth methods.

question

Most helpful comment

If by working directory you mean the default directory that code-server will open to, you can set that using the --data-dir argument

All 4 comments

For now, no. If you're looking for other authentication options, you should look at integrating them into your reverse proxy. If you want just a basic auth w/ user & pass (assuming you're using nginx, not sure about apache), you can look into this guide
If you search google, you'll find that you can also implement other auth methods like Google OAuth, Github OAuth, etc. into Nginx

We'll experiment with NetBadge and possibly contribute docs. I imagine the working directory is also hardcoded as well rather than as an env variable, no?

If by working directory you mean the default directory that code-server will open to, you can set that using the --data-dir argument

coder is the Unix user for our Docker container, if you wish to link your instances to a different user, I suggest creating another container with a different user, or use our binary and run it bare.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chrischabot picture chrischabot  路  3Comments

broady picture broady  路  3Comments

balazssoltesz picture balazssoltesz  路  3Comments

lshamis picture lshamis  路  3Comments

rcarmo picture rcarmo  路  3Comments