Skip to content
README.md 1.19 KiB
Newer Older
## IndieHosters

This repository contains the confd and bash scripts we use to control our servers.
It can run inside Vagrant (see below; FIXME: check whether these instruction currently work) or
[deploy to a server](doc/getting-started-as-a-hoster.md) (FIXME: update those instructions to
prescribe less folder structure, explain static https+smtp hosting, and check if they currently
work).

Michiel de Jong's avatar
Michiel de Jong committed
## Prerequisites to running this code with Vagrant:
pierreozoux's avatar
pierreozoux committed
- [vagrant](http://www.vagrantup.com/)
- [virtualbox](https://www.virtualbox.org/)
Michiel de Jong's avatar
Michiel de Jong committed
- nfs
Michiel de Jong's avatar
Michiel de Jong committed
  - run `apt-get install nfs-kernel-server`, or your OS equivalent
pierreozoux's avatar
pierreozoux committed
- optional: [vagrant-hostsupdater](https://github.com/cogitatio/vagrant-hostsupdater)
  - run `vagrant plugin install vagrant-hostsupdater` to install
pierreozoux's avatar
pierreozoux committed

## Get started:

```bash
vagrant up
```

Pierre Ozoux's avatar
Pierre Ozoux committed
Wait for the provisioning to finish (~5mins), and go to your browser: https://indiehosters.dev
Pierre Ozoux's avatar
Pierre Ozoux committed
### If you want to add another nginx instance apart from indiehosters.dev:
Michiel de Jong's avatar
Michiel de Jong committed

```bash
vagrant ssh
Pierre Ozoux's avatar
Pierre Ozoux committed
sh /data/indiehosters/scripts/activate-user.sh example.dev nginx
Michiel de Jong's avatar
Michiel de Jong committed
```
Check https://example.dev in your bowser!

### Cleaning up

To clean up stuff from previous runs of your VM, you can do:
pierreozoux's avatar
pierreozoux committed

```bash
Pierre Ozoux's avatar
Pierre Ozoux committed
vagrant destroy
vagrant up
pierreozoux's avatar
pierreozoux committed
```