-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using neko-rooms with nginx #3
Comments
Hello, traefik still needs to be running to forward traffic to rooms. You can put nginx in front of that, but not replace that. Your domain name specified for traefik has to match your proxy's output domain. Currently, there is no support for custom paths (so you cannot host your neko-rooms on |
Example working configuration. Internal domain name is only version: "3.7"
networks:
default:
attachable: "true"
name: "neko-rooms-traefik"
services:
traefik:
image: "traefik:2.4"
restart: "unless-stopped"
environment:
- "TZ=Europe/Vienna"
command:
- "--providers.docker=true"
- "--providers.docker.watch=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=neko-rooms-traefik"
- "--entrypoints.web.address=:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
neko-rooms:
image: "m1k1o/neko-rooms:latest"
restart: "unless-stopped"
environment:
- "TZ=Europe/Vienna"
- "NEKO_ROOMS_EPR=59000-59049"
- "NEKO_ROOMS_NAT1TO1=10.8.0.1" # IP address of your server
- "NEKO_ROOMS_TRAEFIK_DOMAIN=traefik" # traefik domain (name of the service)
- "NEKO_ROOMS_TRAEFIK_ENTRYPOINT=web"
- "NEKO_ROOMS_TRAEFIK_NETWORK=neko-rooms-traefik"
- "NEKO_ROOMS_INSTANCE_URL=https://10.8.0.1:8080/" # external URL
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
labels:
- "traefik.enable=true"
- "traefik.http.services.neko-rooms-frontend.loadbalancer.server.port=8080"
- "traefik.http.routers.neko-rooms.entrypoints=web"
- "traefik.http.routers.neko-rooms.rule=Host(`traefik`)" # traefik domain (name of the service)
#
# This should be replaced by your own existing nginx instance
#
nginx:
image: "nginx"
restart: "unless-stopped"
environment:
- "TZ=Europe/Vienna"
ports:
- "8080:80"
volumes:
- "./nginx.conf:/etc/nginx/conf.d/default.conf:ro" Nginx config:
Edit: added |
Got it, thank you. When creating the room I have another error now:
I suspect LXC (I'm using Proxmox) to be the culprit here. It's weird that all other docker containers work... keyctl and nesting is enabled on the Proxmox host. |
I'm using Proxmox VM, and it is working fine for me. Let me try it with LXC. |
I was able to reproduce the issue. As this article suggests, removing custom hostname from container spec indeed solves the issue. Having custom domainname for a container is not an essential feature, so I am removing it in next commit in favor of compatibility. |
Wow, you're fast! Thank you. |
Hello, how can I use this project with nginx?
I'm using the neko reverse proxy configuration, however, with neko-rooms I only get a 404 not found.
I started the server using the .http.yml file.
The text was updated successfully, but these errors were encountered: