Skip to content
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

What should APP_PATH contain? #26

Open
vezaynk opened this issue Dec 27, 2023 · 1 comment
Open

What should APP_PATH contain? #26

vezaynk opened this issue Dec 27, 2023 · 1 comment

Comments

@vezaynk
Copy link

vezaynk commented Dec 27, 2023

I'm trying to run the docker image with https, but can't figure out where to place the SSL certs.

Are there some docs for this?

@oddmario
Copy link

oddmario commented Dec 3, 2024

I am not quite sure about SSL certificates

But upon accessing the shell of the Docker container, I came to conclusion that the environment variables that we pass don't make the Docker image store the things there. But it instead informs the image that this is the path that things are going to be at.

You still need to mount the files from your host machine to the container

Something like this:

docker run --rm -d \
  -p 11470:11470 \
  -p 12470:12470 \
  -e NO_CORS=1 \                 # Set environment variable to disable CORS
  -e FFMPEG_BIN=/root/ffmpeg \   # Path to the ffmpeg binary in the container
  -e FFPROBE_BIN=/root/ffprobe \ # Path to the ffprobe binary in the container
  -e APP_PATH=/root/stremio-cfg \           # Path to the application configuration in the container
  -v /root/server-settings.json:/root/stremio-cfg/server-settings.json \ # Bind mount for server settings
  -v /root/ffmpeg/bin/ffmpeg:/root/ffmpeg \ # Bind mount for ffmpeg binary
  -v /root/ffmpeg/bin/ffprobe:/root/ffprobe \ # Bind mount for ffprobe binary
  stremio/server:latest 

Where:

  • /root/server-settings.json is the path of your server-settings.json file on the host machine
  • /root/ffmpeg/bin/ffmpeg is the path of the ffmpeg bin file on the host machine
  • /root/ffmpeg/bin/ffprobe is the path of the ffprobe bin file on the host machine

(i.e. these files have to exist on your host machine)

and:

  • /root/stremio-cfg/server-settings.json is going to be the path of the server-settings.json file inside the container
  • /root/ffmpeg is going to be the path of the ffmpeg bin inside the container
  • /root/ffprobe is going to be the path of the ffprobe bin inside the container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants