unifi: Switch from nginx to Caddy

Mostly for built-in ACME support.
This commit is contained in:
2025-03-16 16:39:42 -05:00
parent fbbe86c651
commit db5d1fb91a
6 changed files with 27 additions and 28 deletions

View File

@@ -0,0 +1,13 @@
{{ unifi_server_name }} {
reverse_proxy localhost:8443 {
transport http {
tls_insecure_skip_verify
}
}
{% if unifi_caddy_acme|d %}
tls {{ unifi_caddy_acme.email }} {
ca {{ unifi_caddy_acme.url }}
}
{% endif %}
}

View File

@@ -1,9 +0,0 @@
location / {
proxy_pass https://127.0.0.1:8443/;
proxy_ssl_verify off;
client_max_body_size 50m;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}