You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is probably operator error and there's got to be simple solution for this.
I'm trying to put unifi behind nginx reverse proxy doing hostname resolution instead of needing custom ports
i've got working stand alone with ssl using certs but putting it behind nginx causes connection refused and bad gateway issues.
@tim-oe I'm confused. How does the vaultwarden configuration in your nginx.conf relate? Is that a copy/paste error? Where is nginx being run? Directly on the host, or in its own container?
FWIW, I put caddy in front of all my containerized services, including unifi and it works fine.
sorry, ya bad ccp.
I got a local self signed cert that iam that i was using to access it via https directly
for nginx i got a let'sencrypt cert of the registerd domain tecronin.uk
I'm running multiple docker containers including nginx on the same system
i couldn't seem to get it to even proxy on http so not sure about the double cert.
@tim-oe So this doesn't seem like an issue with the unifi container. This issue may get closed by maintainers. I assume you have verified that your nginx container can resolve unifi.localdomain and connect to it?
Operating system
Ubuntu 24.04.1 LTS
UniFi Tag
jacobalberty/unifi:v8.6.9
Docker run
docker compose up
Bug description
this is probably operator error and there's got to be simple solution for this.
I'm trying to put unifi behind nginx reverse proxy doing hostname resolution instead of needing custom ports
i've got working stand alone with ssl using certs but putting it behind nginx causes connection refused and bad gateway issues.
i have the following docker compose:
services:
unifi:
image: jacobalberty/unifi:v8.6.9
container_name: "unifi"
restart: "unless-stopped"
volumes:
# TODO move to volume
- "./unifi:/unifi"
- "./cert:/unifi/cert"
- unifi-run:/unifi/run
ports:
- "3478:3478/udp"
- "10001:10001/udp"
- "8882:8882/tcp"
- "8443:443/tcp"
environment:
- "UNIFI_HTTP_PORT=8882"
- "UNIFI_HTTPS_PORT=443"
- "TZ=America/Chicago"
volumes:
unifi-run:
name: unifi-run
networks:
default:
external: true
name: "share-net"
and this is the proxy mapping from nginx.conf
server {
listen 443 ssl;
ssl_certificate /ssl/vaultwarden/cert.pem;
ssl_certificate_key /ssl/vaultwarden/privkey.pem;
}
Steps to reproduce
front app with nginx try proxying to unifi container
Relevant log output
The text was updated successfully, but these errors were encountered: