nc-env / templates / template08-haproxy-server /
@pmarini pmarini authored on 10 Feb 2023
..
artifacts prepare new release 3 years ago
Readme.md adapt templates to Ubuntu 22.04 2 years ago
Vagrantfile adapt templates to Ubuntu 22.04 2 years ago
provision.sh adapt templates to Ubuntu 22.04 2 years ago
Readme.md

Stand-alone Nextcloud server

Setup

  • Assuming that the copy of the template is called haproxy-server, move to folder haproxy-server.
  • Check the content of folder artifacts
File name Description
haproxy.cfg haproxy configuration file
rootCA.pem The rootCA previously created in your host machine
rootCA-key.pem The rootCA key previously created in your host machine
  • Create folder log
  • Open Vagrantfile and change the value of variable lxd.name. It makes sense to give the same name as the folder, in this example haproxy-server.
  • Open provision.sh
    • change the value of variable MACHINE_HOSTNAME. It makes sense to give the same name as the folder, plus the domain, in this example haproxy-server.localenv.com.
    • change the values of WEBSERVER_NODE01_HOSTNAME and WEBSERVER_NODE02_HOSTNAME.
  • Run vagrant up > log/provisioning.log
  • Make sure your system is able to resolve the domain name that you specified in variable MACHINE_HOSTNAME, for example by adding an entry in /etc/hosts
  • Start using your environment