DPZC-IaaS-3.2/hetzner_3_4/init-server

20 lines
388 B
Plaintext

#cloud-config
packages:
- curl
write_files:
- path: /root/install.sh
content: |
curl -fsSL https://code-server.dev/install.sh > /root/install.sh
- path: /root/config.yml
content: |
bind-addr: 0.0.0.0
port: 80
password: password
cert: false
runcmd:
- cd /root/
- chmod +x install.sh
- ./install.sh
- code-server --config config.yml