Newer
Older
nc-env / templates / template08-haproxy-server / Readme.md
@pmarini pmarini on 13 Apr 2022 1 KB initial commit

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
mkcert mkcert command line utility to be downloaded here. Pick the latest binary for amd64 and rename it to mkcert
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