code-server icon indicating copy to clipboard operation
code-server copied to clipboard

Additional examples of config when running as service

Open FDrebin opened this issue 4 months ago • 3 comments

What is your suggestion?

Include additional config examples of the yaml when running as a service

How will this improve the docs?

Makes it easier to run the coder server as a service without relying on a terminal

Are you interested in submitting a PR for this?

I wish I knew enough to be able to do so.

What am I struggling with?

With the existing config.yaml as a service, I am unable to remove the password based auth so my ODIC can take over as primary auth , instead navigating to the IP:port brings up a password prompt that can not be removed or modified.

FDrebin avatar Aug 24 '25 01:08 FDrebin

Could you expand on why you are not able to edit the config.yaml? It will be located in /home/$USER/.config/code-server where $USER depends on how you launched the service. Normally you would either change the auth line to none in the config or you would add --auth none to your service.

code-asher avatar Aug 26 '25 18:08 code-asher

Could you expand on why you are not able to edit the config.yaml? It will be located in /home/$USER/.config/code-server where $USER depends on how you launched the service. Normally you would either change the auth line to none in the config or you would add --auth none to your service.

Sorry I missed this. I was attempting to run Coder server as a service, I had initially configured it based on the docs but had to be run manually as the user logged in etc. When I attempted to take my config as a user and configure it for a service or service account it would fail to run/

I will see what log files I can gather, I did get Coder Server running but in docker which wasn't my first choice.

FDrebin avatar Sep 04 '25 13:09 FDrebin

Sounds good. Let us also know what exactly you ran. I assume something like this:

sed -i.bak 's/auth: password/auth: none/' ~/.config/code-server/config.yaml
sudo systemctl restart code-server@$USER

code-asher avatar Sep 06 '25 02:09 code-asher