feat: update Unifi Network Application configuration and add new reverse proxy settings
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 42s
Nix Format Check / check-format (push) Failing after 1m42s
Python Lint Check / check-python (push) Failing after 26s

This commit is contained in:
2025-07-20 19:14:51 +02:00
parent 546e888bdb
commit f59767597b
4 changed files with 31 additions and 6 deletions

View File

@@ -131,4 +131,4 @@
- name: unifi-network-application
enabled: true
hosts:
- mennos-cloud-server
- mennos-cachyos-desktop

View File

@@ -100,6 +100,28 @@ home.vleeuwen.me {
tls {{ caddy_email }}
}
unifi.mvl.sh {
reverse_proxy unifi-controller:8443 {
transport http {
tls_insecure_skip_verify
}
header_up Host {host}
header_up X-Forwarded-Proto https
}
}
hotspot.mvl.sh {
reverse_proxy unifi-controller:8843 {
transport http {
tls_insecure_skip_verify
}
}
}
hotspot.mvl.sh:80 {
reverse_proxy unifi-controller:8880
}
bin.mvl.sh {
import country_block
reverse_proxy privatebin:8080

View File

@@ -3,13 +3,16 @@ services:
image: linuxserver/unifi-network-application:latest
restart: unless-stopped
ports:
- "8080:8080" # Device communication
- "8443:8443" # Controller GUI / API
- "3478:3478/udp" # STUN
- "8080:8080" # Device communication
- "8443:8443" # Controller GUI / API
- "3478:3478/udp" # STUN
- "10001:10001/udp" # AP discovery
- "8880:8880" # HTTP portal redirect (guest hotspot)
- "8843:8843" # HTTPS portal redirect (guest hotspot)
- "6789:6789" # Mobile speed test (optional)
environment:
- PUID=1000
- PGID=1000
- PGID=100
- TZ=Europe/Amsterdam
- MONGO_USER=unifi
- MONGO_PASS=unifi

View File

@@ -3,7 +3,7 @@
block:
- name: Set Unifi Network App directories
ansible.builtin.set_fact:
unifi_network_application_data_dir: "/mnt/object_storage/services/unifi_network_application"
unifi_network_application_data_dir: "/mnt/services/unifi_network_application"
unifi_network_application_service_dir: "{{ ansible_env.HOME }}/services/unifi_network_application"
- name: Create Unifi Network App directories