- Notifications
You must be signed in to change notification settings - Fork6.1k
How to remove/disable download button on code server?#5886
-
For data security, my organization requires to prohibit downloading files from server. |
BetaWas this translation helpful?Give feedback.
All reactions
I was surprised we don't have notes in the docs on this. Apologies! Here are the docs for that:
--disable-file-downloads Disable file downloads from Code. This can also beset with CS_DISABLE_FILE_DOWNLOADSset to'true' or'1'.
This is a flag you can pass tocode-server
on startup.
Replies: 3 comments 5 replies
-
I was surprised we don't have notes in the docs on this. Apologies! Here are the docs for that: --disable-file-downloads Disable file downloads from Code. This can also beset with CS_DISABLE_FILE_DOWNLOADSset to'true' or'1'. This is a flag you can pass to |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thank you! |
BetaWas this translation helpful?Give feedback.
All reactions
🚀 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
How can i use it with the docker? |
BetaWas this translation helpful?Give feedback.
All reactions
-
You can add arguments to the end of the |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
But its not working here i added insudo vi /etc/coder.d/coder.env e.g.https://coder.example.comCODER_ACCESS_URL=http://13.21.177.12 and i run this command sudo systemctl daemon-reexec Now if i go for coder and open incode-server and i click any file and clickDownload option it is downloading . and also it is sending the request like so please tell me how to resolve this if i use code-server or vscode desktop if i click download it need to be give 403 error or it dont need to be download please give me the solution. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I do not believe systemd will read that
|
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Except, I misread, you are starting Coder with systemd, not code-server, right? I think environment variables set on coderd will not propagate to the workspace agent. How are you starting code-server? Are you usingthe module? If so, I am not sure there is a way to configure this. The module will have to be modified to support the flag. But if you are not using the module and launching code-server yourself, you can just add the flag. For example:
|
BetaWas this translation helpful?Give feedback.
All reactions
-
Also note that this flag is for code-server only, it does not affect VS Code desktop. |
BetaWas this translation helpful?Give feedback.