docker-jitsi
docker-jitsi copied to clipboard
So many gaps in documenation and bugs in nginx config in 2 config files
/config/default.conf = nginx config (had to find that out the hard way) /docker-compose.yaml = volumes syntax is wrong and gives errors
bug 1 and 1a: container wont stay running and get rootfs error bug 2: Webpage doesn't work error 403
BUG1:
- make sure dns can resolve the dns name of the domain fqdn of the server configured! then container won't crash and restart endlessly.
2.ERROR: ERROR: for jitsi_nginx_1 Cannot start service nginx: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:430: container init caused "rootfs_linux.go:58: mounting "/root/docker-jitsi/config/config.js" to rootfs "/var/lib/docker/overlay2/1037d27758542bd28cee121e636fbfa92401c071bba99f922af836ade32cbef5/merged" at "/var/lib/docker/overlay2/1037d27758542bd28cee121e636fbfa92401c071bba99f922af836ade32cbef5/merged/usr/share/nginx/html/config.js" caused "open /var/lib/docker/overlay2/1037d27758542bd28cee121e636fbfa92401c071bba99f922af836ade32cbef5/merged/usr/share/nginx/html/config.js: read-only file system""": unknown
To fix BUG2, removed ":ro" from all lines and changed to this below volumes: - ./config/default.conf:/etc/nginx/conf.d/default.conf - ../jitsi-meet:/usr/share/nginx/html - ./config/config.js:/usr/share/nginx/html/config.js
BUG2
-
error: 403 page of jitsi doesn't load container log: 2020-11-08T01:32:44.893986685Z 2020/11/08 01:32:44 [error] 7#7: *4 directory index of "/usr/share/nginx/html/" is forbidden, client: 89.187.161.220, server: meet.entworld.fans, request: "GET / HTTP/1.1", host: "meet.entworld.fans:9090"
-
edit /config/default.conf added a whole new section for autoindex (main issue in missing code)
#charset koi8-r; #access_log /var/log/nginx/log/host.access.log main; root /usr/share/nginx/html; location / { root /usr/share/nginx/html; index index.html index.htm; ## The following 3 Rows are added. autoindex on; autoindex_exact_size on; autoindex_localtime on; }
##error_page 404 /404.html;
#redirect server error pages to the static page /50x.html #redirect error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; }
- still doesn't work, my devops is working on it.
To Reproduce bug1: restart container id of nginx bug2: load the webpage in browser