More > JRiver Media Center 30 for Linux
Docker Images for MC30 (current one + a new image with arm builds)
res80:
--- Quote from: max096 on January 03, 2023, 01:14:13 pm ---Tried it now using this configuration it works fine.
--- Code: ---upstream mediacenter {
# Docker container running mediacenter
server 127.0.0.1:5800;
}
# Redirect HTTP connections to HTTPS
#server {
# listen 80;
# listen [::]:80;
# return 301 https://$host$request_uri;
#}
server {
listen 443 ssl;
ssl_certificate /path/to/cert;
ssl_certificate_key /path/to/private_key;
location / {
proxy_pass http://mediacenter;
proxy_http_version 1.1;
}
location /api {
proxy_pass http://mediacenter;
proxy_http_version 1.1;
proxy_set_header Upgraded $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /websockify {
proxy_pass http://mediacenter;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
# VNC connection timeout
proxy_read_timeout 61s;
# Disable cache
proxy_buffering off;
}
}
--- End code ---
--- End quote ---
Thank you so much for the hints.
However, I would like to run the novnc on a subfolder, not root of my sudomain.
So instead of "/", it would be "/admin" in my case.
Should I change "/api" to "/admin/api" then?
Sorry, not sure about that entirely...
Thanks,
Ruediger
max096:
--- Quote from: res80 on January 03, 2023, 04:39:59 pm ---Thank you so much for the hints.
However, I would like to run the novnc on a subfolder, not root of my sudomain.
So instead of "/", it would be "/admin" in my case.
Should I change "/api" to "/admin/api" then?
Sorry, not sure about that entirely...
Thanks,
Ruediger
--- End quote ---
Don't think that would entirely work right now. The webapp determines the urls by taking the base url and adding /api and /websockify to them (when it runs in your browser so your nginx config won't affect that). There may be other issues too. Never tested it for that. You can make a subdomain like mc.mydomain.com or vnc.mydomain.com.
Scobie:
Question for Max, how do I get the Docker image to recognise an external USB DVD drive?
My QNAP picks it up and gives the disc a volume name, I'm assuming I can pass this through to the image?
Thanks
max096:
--- Quote from: Scobie on January 16, 2023, 08:10:42 pm ---Question for Max, how do I get the Docker image to recognise an external USB DVD drive?
My QNAP picks it up and gives the disc a volume name, I'm assuming I can pass this through to the image?
Thanks
--- End quote ---
Try adding /dev/sr0 to the devices similar how it explains it for /dev/snd in the docs though ive never tried and there is currently no script that adds the group to the mc user like there is for /dev/snd. So you might not have access to it in the container without manually changing permissions.
If the device belongs to a group on your QNAP you can just add the group id to SUP_GROUP_IDS.
---
Just tried it works just fine. On your QNAP check what group /dev/sr0 belongs to
--- Code: ---max@fax:~ $ ls -la /dev/sr0
brw-rw----+ 1 root cdrom 11, 0 Jan 17 19:20 /dev/sr0
--- End code ---
Then get the group id for the group name it spits out.
--- Code: ---max@fax:~ $ cat /etc/group | grep cdrom
cdrom:x:11:
--- End code ---
Then if you're using compose you can add this
--- Code: ---version: '3'
services:
jrivermc:
.
.
environment:
- SUP_GROUP_IDS=11
devices:
- /dev/sr0
--- End code ---
Or for docker run add these "--device /dev/sr0 -e SUP_GROUP_IDS=11"
If you have multiple cdrom drives you can remap any of them to /dev/sr0 in the container like this "/dev/sr1:/dev/sr0". The mc changelogs say it will only look for /dev/sr0 specifically so I think you have to remap it if you want to use another disk drive.
I'll be adding something in the next version that adds the group id automatically on startup for /dev/sr0 similarly to how it already works for /dev/snd. Then it will be enough to just map the device.
Scobie:
Brilliant will give that a try (or just fumble about til your next release...!) , thanks Max.
Navigation
[0] Message Index
[*] Previous page
Go to full version