Girish Ramakrishnan 1e6c5cce34 Distinguish hostnames and domain names
hostname - name of an actual addressable thing on the internet
domain name - the name of a network
root domain - this is actually "." or empty. the top most thing
tld, gtld - this is thing under root domain which has an entry in the root servers - com, co.uk etc
fqdn - this is really fully qualified hostname. so the full name in a host
sub domain - refers to a network rather a hostname. example.foo.com is a sub domain iff it's a network. otherwise it would be a hostname. foo.com is a subdomain of com.
zone - a concept of DNS where entries under a sub domain are delegated to a nameserver.
2014-11-21 21:01:56 -08:00
2013-10-12 09:56:21 -07:00
2014-11-21 15:52:52 -08:00
2014-10-28 00:20:44 -07:00
2014-10-22 11:02:30 -07:00
2014-11-20 21:14:15 -08:00
2014-11-21 14:18:59 -08:00
2014-11-06 18:44:49 -08:00
2014-10-26 14:18:37 -07:00
2014-11-03 14:19:12 -08:00
2014-11-12 13:15:29 -08:00

The Box

Development setup

  • sudo adduser yellowtent ** This dummy user is required for supervisor 'box' configs

  • rmappdir.sh should be callable without a password ** Add a file called /etc/sudoers.d/yellowtent with the following contents: Defaults!/home/girish/yellowtent/box/src/scripts/rmappdir.sh env_keep=HOME girish ALL=(ALL) NOPASSWD: /home/girish/yellowtent/box/src/scripts/rmappdir.sh Defaults!/home/girish/yellowtent/box/src/scripts/reloadnginx.sh env_keep=HOME girish ALL=(ALL) NOPASSWD: /home/girish/yellowtent/box/src/scripts/reloadnginx.sh Defaults!/Users/girishra/research/yellowtent/box/src/scripts/backup.sh env_keep=HOME girishra ALL=(ALL) NOPASSWD: /Users/girishra/research/yellowtent/box/src/scripts/backup.sh Defaults!/Users/girishra/research/yellowtent/box/src/scripts/reboot.sh env_keep=HOME girishra ALL=(ALL) NOPASSWD: /Users/girishra/research/yellowtent/box/src/scripts/reboot.sh Defaults!/Users/girishra/research/yellowtent/box/src/scripts/reloadcollectd.sh env_keep=HOME girishra ALL=(root) NOPASSWD: /Users/girishra/research/box/src/scripts/reloadcollectd.sh

    (replace the username and path to rmappdir.sh to match your environment)

    You might have to clear the sudo cache using sudo -k.

** scripts/checkInstall.sh

** Add admin-localhost as 127.0.0.1 in /etc/hosts ** All apps will be installed as hypened-subdomains of localhost. You should add hyphened-subdomains of your apps into /etc/hosts

Running

  • ./run.sh - this starts up nginx to serve up the webadmin ** Navigate to https://admin-localhost

  • DEBUG=box:* ./app.js - this the main box code ** NODE_ENV is set to production by default

Deployment setup

Creating a box image involves the following steps:

  • scripts/createDigitalOceanImage.sh <GIT_REF>
  • This should spit out a image id at the end of the script
S
Description
Cloudron Box
Readme 47 MiB
Languages
JavaScript 72.6%
Vue 22.3%
Shell 3.1%
HTML 1.1%
EJS 0.7%
Other 0.2%