Configuration and SSL
The rest of this walk-through will step through the setup of the instance, adding configuration variables from the previous "Dependency Setup" section, and configuring SSL for the instance.
In order to set configuration variables and such, we'll need to have SSH access to the remote machine. In the [instance setup](https://docs.highlight.run/docs/linux-instance-setup) section, you downloaded a key pair. In your terminal, navigate to the directory where it lives.
Secondly, you'll need access to the public IP of your ec2 instance, which can be found on the main page for your instance. Further, if you select "Connect" in the top right and then click "SSH Client", you'll be able to directly copy the command.
Assuming: - The public URL for your ec2 instance is `ec2-1234.us-west.-2.compute.amazonaws.com` - The name of your key pair is `my-company.pem` (and you've navigated to this respective directory)
The command is as follows:
1. Once you've logged into your instance via a shell, clone the [on-premise repo](https://github.com/highlight-run/highlight-onpremise) with:
2. Navigate into the repo (`cd highlight-onpremise`) and run the following command:
3. In the same directory, run:
This will run a process that creates ssl keys on this machine. Additionally, it will ask you for the domain that you mapped in the earlier step (e.g. `highlight.mycompany.com`) as well as an administrator email (e.g. `email@example.com`).
1. Navigate to the project and execute the `setup-config.sh` bash script (`./setup.config.sh`). You should now see a file called `environment.yml`, which looks like this: