feat: Added vscode

This commit is contained in:
uttarayan21
2025-01-13 20:45:20 +05:30
parent fcc4de84ba
commit 53f8e2998d
4 changed files with 47 additions and 19 deletions

View File

@@ -0,0 +1,19 @@
{pkgs, ...}: {
services = {
openvscode-server = {
enable = true;
port = 3000;
host = "0.0.0.0";
extraPackages = with pkgs; [];
};
caddy = {
virtualHosts."code.darksailor.dev".extraConfig = ''
forward_auth localhost:5555 {
uri /api/authz/forward-auth
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
}
reverse_proxy localhost:3000
'';
};
};
}