Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hardillb/nginx-proxy-avahi-helper
A container to generate matching mDNS CNAMEs for the virtual hosts used by jwilder/nginx-proxy
https://github.com/hardillb/nginx-proxy-avahi-helper
avahi docker mdns nginx-proxy
Last synced: 29 days ago
JSON representation
A container to generate matching mDNS CNAMEs for the virtual hosts used by jwilder/nginx-proxy
- Host: GitHub
- URL: https://github.com/hardillb/nginx-proxy-avahi-helper
- Owner: hardillb
- License: apache-2.0
- Created: 2020-09-22T19:32:19.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-28T15:43:56.000Z (about 1 year ago)
- Last Synced: 2024-05-02T06:17:01.283Z (6 months ago)
- Topics: avahi, docker, mdns, nginx-proxy
- Language: Python
- Homepage: https://www.hardill.me.uk/wordpress/2020/09/22/nginx-proxy-avahi-helper/
- Size: 4.8 MB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# nginx-proxy-avahi-helper
A docker container to generate mDNS CNAME entries for the virtual hosts
used by [jwilder/nginx-proxy](https://github.com/nginx-proxy/nginx-proxy).The virtual hosts are held in the VIRTUAL_HOST Env Var of the proxied container.
## Installing
`docker pull hardillb/nginx-proxy-avahi-helper`
Currently there are AMD64 and ARM64 based builds.
## Running
To work this needs the following 2 volumes mounting:
` -v /var/run/docker.sock:/tmp/docker.sock`
This allows the container to monitor docker
` -v /run/dbus/system_bus_socket:/run/dbus/system_bus_socket`
And this allows the container to send d-bus commands to the host OS's Avahi daemon
`docker run -d -v /var/run/docker.sock:/tmp/docker.sock -v /run/dbus/system_bus_socket:/run/dbus/system_bus_socket hardillb/nginx-proxy-avahi-helper`
## AppArmor
If you are running on system with AppArmor installed you may get errors about not being able to send d-bus messages. To fix this add
`--privileged` to the command line.This is a temp workaround until I can work out a suitable policy to apply.
## Acknowledgment
This uses and borrows heavily from [mdns-publisher](https://github.com/alticelabs/mdns-publisher)