Skip to content

Instantly share code, notes, and snippets.

@akaihola
Created December 18, 2020 18:54
Show Gist options
  • Save akaihola/9cc769915b939ab0fe2a1901294d4b27 to your computer and use it in GitHub Desktop.
Save akaihola/9cc769915b939ab0fe2a1901294d4b27 to your computer and use it in GitHub Desktop.
CrewLink-server cloud-init for Ubuntu
#cloud-config
# Start an Ubuntu server with this cloud-init data to run a
# CrewLink-server instance and update its IP for a subdomain. The
# domain name must be hosted at Gandi LiveDNS.
#
# Near the bottom of the page, replace these strings with your data:
# - your Gandi API key
# - your-domain.tld
# - your-subdomain
#
# To use this e.g. on Hetzner, create a new server at
# https://console.hetzner.cloud/projects/<project-id>/servers/create
# and fill in
# (6) Additional features / User data / Cloud-init configuration
# with the contents of this file.
apt:
sources:
"yarn.list":
source: "deb https://dl.yarnpkg.com/debian/ stable main"
key: |
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFf0j5oBEADS6cItqCbf4lOLICohq2aHqM5I1jsz3DC4ddIU5ONbKXP1t0wk
FEUPRzd6m80cTo7Q02Bw7enh4J6HvM5XVBSSGKENP6XAsiOZnY9nkXlcQAPFRnCn
CjEfoOPZ0cBKjn2IpIXXcC+7xh4p1yruBpOsCbT6BuzA+Nm9j4cpRjdRdWSSmdID
TyMZClmYm/NIfCPduYvNZxZXhW3QYeieP7HIonhZSHVu/jauEUyHLVsieUIvAOJI
cXYpwLlrw0yy4flHe1ORJzuA7EZ4eOWCuKf1PgowEnVSS7Qp7lksCuljtfXgWelB
XGJlAMD90mMbsNpQPF8ywQ2wjECM8Q6BGUcQuGMDBtFihobb+ufJxpUOm4uDt0y4
zaw+MVSi+a56+zvY0VmMGVyJstldPAcUlFYBDsfC9+zpzyrAqRY+qFWOT2tj29R5
ZNYvUUjEmA/kXPNIwmEr4oj7PVjSTUSpwoKamFFE6Bbha1bzIHpdPIRYc6cEulp3
dTOWfp+Cniiblp9gwz3HeXOWu7npTTvJBnnyRSVtQgRnZrrtRt3oLZgmj2fpZFCE
g8VcnQO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/RB
DljH10TKzyScy8SVb8gI1twN1huqqqUsz77GuBl2OXIY573GxGX83DPNUhSCKaP4
uWI5PWUF1Vc0ugrLw2wsL4uEErdnKgT5BCvfC88zd4scm3zmLoWpMDqOrnuLFMMH
SJcVg4Z+R56o5/vJfFuhhDbBuoioaZlPkYMba2by/8d4i/CFHjaiGVpnTJRTaNfv
wYt1ycwdm//EuWjm21zESkkbcTNn0fVYpxYtIUbCojGzbX6eHxtXPGqkU45+Gwkq
lW5cnwIHU8XNKwb2jR0zyFCNMD/Vb1371RpT0KS/0PyJS66J0P386ANQWEsllgdU
CkESjj5AT1KordMHBt78XR5ju9T0AcLfJvaDjoA0sSz7Bi2gwd0lqRukY2bwgbpd
1K/aPN5Njt4wSdGVBhZI9l/68oyBmedl1jvKQfr7mVrSNFeOh8scZrBldYN1
=nmWU
-----END PGP PUBLIC KEY BLOCK-----
package_update: true
packages:
- nodejs
- yarn
- screen
users:
- name: crewlink
write_files:
- path: /etc/systemd/system/crewlink.service
content: |
[Unit]
Description=CrewLink server
[Service]
ExecStart=yarn start
Restart=always
User=crewlink
Group=nogroup
Environment=PATH=/usr/bin
WorkingDirectory=/home/crewlink/CrewLink-server-master/
[Install]
WantedBy=multi-user.target
- path: /root/ddns.sh
permissions: '0755'
content: |
#!/bin/bash -evx
API_KEY="your Gandi API key"
URL="https://api.gandi.net/v5/livedns/domains/your-domain.tld/records/your-subdomain"
IP="$( ifconfig eth0 | grep 'inet ' | awk '{ print $2 }' )"
( read -r -d '' PAYLOAD || true ) <<-EOF
{"items": [{"rrset_type": "A", "rrset_values": ["$IP"], "rrset_ttl": 300}]}
EOF
curl \
--header "Authorization: Apikey ${API_KEY}" \
--header "Content-Type: application/json" \
--request PUT \
--data "${PAYLOAD}" \
"${URL}"
runcmd:
- /root/ddns.sh
- - bash
- -vxc
- >-
curl -L https://github.com/ottomated/CrewLink-server/archive/master.zip
| su crewlink -c 'busybox unzip -d /home/crewlink/ -'
- - su
- crewlink
- -c
- cd /home/crewlink/CrewLink-server-master ; yarn install
- systemctl enable crewlink
- systemctl start crewlink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment