15 lines
407 B
YAML
15 lines
407 B
YAML
#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 & |