Provisioning a new server
Provisioning in Forge
Section titled “Provisioning in Forge”Ensure you know the specs of the server you want to provision, the region, and the server provider.
- In Forge, sign in with
hello@novatura.co. - On the Servers page, click ‘New Server’
- Name the server with the convention
uk-ldn-project-1 - Select the provder and hit ‘Continue’
- Choose the server type (usually App Server), region and network (create a new one for a new project)
- Choose the server with the specs you’ve already found through the provider
- In the advanced settings, configure backups
- When shown the sudo and database passwords, add those to a secure note in 1Password (use the server name as the note name)
In the server settings on Forge, go to the SSH tab.
- Add a new SSH key, using the convention “[Name][DeviceType]”, e.g. JamesMacbook
- Use 1Password to create and store the SSH key (call it the server name, and keep this one private)
- If you’ve got 1Password SSH agent set up correctly, you should be able to do
ssh forge@<server-public-ip>Tailscale
Section titled “Tailscale”To add the new server to the Novatura tailnet:
- Head to the web dashboard for Tailscale
- Click ‘Add device’
- It’s a Linux Server, choose an appropriate tag (
tag:prod-serverif its a prod server) - Keep all other default and generate the install script
- In your SSH client, run the install script on the new server
Creating the site
Section titled “Creating the site”To deploy a Laravel project on Forge, follow these instructions.
Resource Monitoring
Section titled “Resource Monitoring”If this is intended to be a production server, make sure resource monitors are set up on the server itself (not the site). In the Observe tab on the server page in Forge, add the following:
- CPU Load Average >= 80% for at least 15 minutes
- Used Disk Space >= 80% for at least 15 minutes
- Used Memory >= 80% for at least 15 minutes
For all of the above, set the notification to go to support@novatura.co.