Skip to content
README.md 1.4 KiB
Newer Older
pierreozoux's avatar
pierreozoux committed
## Prerequisites to work on this project:
- [vagrant](http://www.vagrantup.com/)
- [virtualbox](https://www.virtualbox.org/)
- optional: [vagrant-hostsupdater](https://github.com/cogitatio/vagrant-hostsupdater)
  - run `vagrant plugin install vagrant-hostsupdater` to install
pierreozoux's avatar
pierreozoux committed

## Get started:
- Put a TLS certificate (self-signed is fine, but make sure you have [public, intermediate, and private all concatenated into one .pem file](https://www.digitalocean.com/community/tutorials/how-to-implement-ssl-termination-with-haproxy-on-ubuntu-14-04)) in /data/per-user/indiehosters.dev/combined.pem on the host system.
- Test it with `openssl s_server -cert /data/per-user/indiehosters.dev/combined.pem -www`
pierreozoux's avatar
pierreozoux committed

```bash
vagrant up
```

Wait for the provisioning to finish (~40mins), and go to your browser: https://indiehosters.dev
### If you want to add another wordpress instance apart from indiehosters.dev:
Michiel de Jong's avatar
Michiel de Jong committed
- For e.g. example.dev, put a cert for it in /data/per-user/example.dev/combined.pem on
the host system.
- Test it with `openssl s_server -cert /data/per-user/example.dev/combined.pem -www`

```bash
vagrant ssh
sudo sh /data/indiehosters/scripts/approve-user.sh example.dev wordpress
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
vagrant ssh
Michiel de Jong's avatar
Michiel de Jong committed
rm -rf /etc/systemd/system/multi-user.wants/*
pierreozoux's avatar
pierreozoux committed
```
Michiel de Jong's avatar
Michiel de Jong committed
and then restart the VM with `vagrant reload`.