No description
blueprints | ||
config | ||
importers | ||
scripts | ||
templates | ||
unit-files | ||
.gitignore | ||
LICENSE | ||
README.md | ||
Vagrantfile |
Prerequisites to work on this project:
- vagrant
- virtualbox
- optional: vagrant-hostsupdater
- run
vagrant plugin install vagrant-hostsupdater
to install
- run
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) 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
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:
- 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
vagrant ssh
sudo sh /data/infrastructure/scripts/approve-user.sh example.dev wordpress
Check https://example.dev in your bowser!
Cleaning up
To clean up stuff from previous runs of your VM, you can do:
vagrant ssh
rm -rf /etc/systemd/system/multi-user.wants/*
and then restart the VM with vagrant reload
.