Scripts to make metaverse (as in social responsive VR-optional) work privately within a VPN
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
651 B

#!/bin/bash
export TOKEN=dop_v1_...
# see https://cloud.digitalocean.com/account/api/tokens
# this is an example, you MUST adjust to YOUR values
curl -X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer '$TOKEN'' \
-d '{"name":"metaversevpn-debian-s-1vcpu-1gb-fra1-01",
"size":"s-1vcpu-1gb",
"region":"fra1",
"image":"debian-11-x64",
"ssh_keys":[ "'"$(ssh-keygen -l -E md5 -f ~/.ssh/id_rsa_corsair_linux.pub | awk '{print $2}'| sed 's|MD5:||')"'" ],
"user_data": "'"$(cat cloudinit)"'",
"vpc_uuid":"072c13c7-da6d-4347-b40c-603821d1a8a2"}' \
"https://api.digitalocean.com/v2/droplets"