Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yamatt/fly-unifi

Deploy the Unifi Network Application to Fly.io
https://github.com/yamatt/fly-unifi

docker fly flyio haproxy horust mongo mongod mongodb monolithic ubuntu ubuntu-2404 unifi unifi-controller unifi-network-application

Last synced: 7 days ago
JSON representation

Deploy the Unifi Network Application to Fly.io

Awesome Lists containing this project

README

        

# Fly.io Unifi

A single container to run the Unifi Network Application on Fly.io.

Note that the Unifi Network Application requires self signed certs, there is no non-cert option. This has two effects with fly.io:

- If you're using the Fly.io Proxy it cannot verify the certificates and refuses to connect. If there was an option to ignore self signed certs this would be fine. Everything tells you this is insecure, but the in-transit encryption only exists within the machine.
- If you're using tcp passthrough, where you're connecting to the Unifi Network Application's port 8443 directly over the internet, your browser will refuse to connect to a self signed certificate as a global domain. There is no fix for this.

Therefore this service uses haproxy as a reverse proxy to connect to the Unifi Network Application on port 8443 and ignore the self signed cert, and present that without certificates on port 8081.

## Setup

### Launch

You will need to create your instance first. Do not use the default app name.

```bash
flyctl launch --name
```

### Volumes

You will need to create a data volume for the config data

```bash
flyctl volumes create unifi_data
```