From d27738cd7b8c03b6aba87bdd20260ee512678221 2023-12-14 22:47:50 From: x Date: 2023-12-14 22:47:50 Subject: [PATCH] docs: explain how to set up the web server --- diff --git a/README.md b/README.md index 5dcc27a5e73aec778e9e118aab4e5d1c8cf8e2f3..1dc3b21959f40fa91b02fd6983574772dcbe14ec 100644 --- a/README.md +++ b/README.md @@ -48,3 +48,23 @@ fflux@fflux:~/repos/Ansible-Configuration$ ansible-playbook -i hosts initial_ser ``` Note that the placement of the repositories might impact the playbook's behaviour, particularly for more advanced setups, incl. web server. + +### Install Website (freifunk, www, api) + +First, make sure the machine is still configured properly at the top of the `hosts` file. (see initial server setup) + +Then, put the machine under the `[website-web]` group: + +```yml +perso-test +``` + +Note that if you are not running this on the fflux management server as the `fflux` user, you might want to check the remote `authorized_keys` (that one of your keys is allowed) and append `ansible_user=fflux` to that line, similarly to the initial server setup. + +**IMPORTANT NOTE**: do not forget to set the DNS records properly, so that the machine is reachable via the domain names. (at the time of writing `freifunk.lu`, `www.freifunk.lu` and `api.freifunk.lu`, but you can simply check the playblook) + +Finally, run the playbook: + +```bash +fflux@fflux:~/repos/Ansible-Configuration$ ansible-playbook -v -i hosts web/install_website.yml +```