Upload files to "/"

This commit is contained in:
s464863 2024-11-23 13:46:37 +01:00
commit 8bbd15db28

15
cloud_init_vscode.yml Normal file
View File

@ -0,0 +1,15 @@
#cloud-config
write_files:
- path: /root/server-config.yaml
content: |
bind-addr: 0.0.0.0:8080
auth: password
password: admin
cert: false
owner: root:root
runcmd:
- cd /root
- export HOME=/root
- curl -fsSL https://code-server.dev/install.sh | sh > /root/install.log 2>&1
- code-server --config /root/server-config.yaml > /root/code-server.log 2>&1 &