compose-website/README.md

45 lines
1.5 KiB
Markdown
Raw Normal View History

2014-10-17 12:13:06 +00:00
## 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).
2014-10-17 14:58:30 +00:00
## Prerequisites to running this code with Vagrant:
2014-09-26 12:57:09 +00:00
- [vagrant](http://www.vagrantup.com/)
- [virtualbox](https://www.virtualbox.org/)
2014-10-17 14:06:13 +00:00
- nfs
2014-10-17 14:58:30 +00:00
- run `apt-get install nfs-kernel-server`, or your OS equivalent
2014-09-26 12:57:09 +00:00
- optional: [vagrant-hostsupdater](https://github.com/cogitatio/vagrant-hostsupdater)
2014-10-03 10:10:17 +00:00
- run `vagrant plugin install vagrant-hostsupdater` to install
2014-09-26 12:57:09 +00:00
## Get started:
```bash
vagrant up
```
Wait for the provisioning to finish (~40mins), and go to your browser: https://indiehosters.dev
2014-10-07 07:42:50 +00:00
2014-10-17 12:13:06 +00:00
### FIXME: this is outdated: If you want to add another nginx instance apart from indiehosters.dev:
2014-10-07 07:42:50 +00:00
- 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
2014-10-17 11:47:40 +00:00
sudo sh /data/indiehosters/scripts/approve-user.sh example.dev wordpress
2014-10-07 07:42:50 +00:00
```
Check https://example.dev in your bowser!
### Cleaning up
To clean up stuff from previous runs of your VM, you can do:
2014-09-26 12:57:09 +00:00
```bash
vagrant ssh
2014-10-07 07:42:50 +00:00
rm -rf /etc/systemd/system/multi-user.wants/*
2014-09-26 12:57:09 +00:00
```
2014-10-07 07:42:50 +00:00
and then restart the VM with `vagrant reload`.