Created
March 13, 2025 07:29
-
-
Save Iucasmaia/17238e1f579de4af3b60bd2444d92f01 to your computer and use it in GitHub Desktop.
docker-compose.yml & nginx.conf - neko-rooms ARM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p auth | |
chmod 755 auth | |
sudo apt-get update | |
sudo apt-get install -y apache2-utils | |
htpasswd -c auth/.htpasswd admin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU nano 4.8 docker-compose.yml | |
networks: | |
default: | |
attachable: true | |
name: "neko-rooms-net" | |
services: | |
neko-rooms: | |
image: "m1k1o/neko-rooms:latest" | |
restart: "unless-stopped" | |
environment: | |
- "TZ=America/Sao_Paulo" | |
- "NEKO_ROOMS_MUX=true" | |
- "NEKO_ROOMS_EPR=59000-59049" | |
- "NEKO_ROOMS_NAT1TO1=YOUR_IP" | |
- "NEKO_ROOMS_INSTANCE_URL=http://YOUR_IP:80/" | |
- "NEKO_ROOMS_INSTANCE_NETWORK=neko-rooms-net" | |
- "NEKO_ROOMS_TRAEFIK_ENABLED=false" | |
- "NEKO_ROOMS_PATH_PREFIX=/room/" | |
- "NEKO_ROOMS_STORAGE_ENABLED=true" | |
- "NEKO_ROOMS_STORAGE_INTERNAL=/data" | |
- "NEKO_ROOMS_STORAGE_EXTERNAL=/opt/neko-rooms/data" | |
- "NEKO_ROOMS_NEKO_IMAGES=ghcr.io/m1k1o/neko/arm-firefox:latest ghcr.io/m1k1o/neko/arm-chromium:latest ghcr.io/m1k1o/neko/arm-ungoogled-chromium:latest ghcr.io/m1k1o/neko/arm-vlc:latest ghcr.io/m1k1o/neko/arm-xfce:latest" | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock" | |
- "/opt/neko-rooms/data:/data" | |
nginx-auth: | |
image: "nginx:alpine" | |
restart: "unless-stopped" | |
ports: | |
- "80:80" | |
- "8080:80" | |
volumes: | |
- "./nginx.conf:/etc/nginx/conf.d/default.conf:ro" | |
- "./auth/.htpasswd:/etc/nginx/auth/.htpasswd:ro" | |
depends_on: | |
- neko-rooms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name _; | |
location / { | |
auth_basic "Área Restrita - Neko Rooms"; | |
auth_basic_user_file /etc/nginx/auth/.htpasswd; | |
proxy_pass http://neko-rooms:8080; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
} | |
location /room/ { | |
proxy_pass http://neko-rooms:8080/room/; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
} | |
location /ws { | |
auth_basic off; | |
proxy_pass http://neko-rooms:8080/ws; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment