Skip to content

Files

Latest commit

 

History

History
30 lines (23 loc) · 958 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 958 Bytes

DOCKER-H5AI

RUN with a basic nginx configuration file

$ sudo docker run -d \
  -p 80:80 \
  -v $PWD:/var/www \
  -v $PWD/nginx_config_examples/basic_h5ai.nginx.conf:/etc/nginx/sites-enabled/h5.conf \
  corfr/h5ai

HTTPS and PASSWORD

  1. Create a password file. Set up http auth with nginx
  2. Create nginx conf file or look at the one in nginx_config_examples/
  3. Generate or use a cert and key file. How to create an ssl certificate on nginx
$ sudo docker run -d \
  -p 80:80 \
  -p 443:443 \
  -v $PWD/nginx_config_examples/h5ai.nginx.conf:/etc/nginx/sites-enabled/h5.conf \
  -v $PWD/htpasswd:/mnt/config/htpasswd:ro \
  -v $PWD/ssl:/etc/nginx/ssl:ro \
  -v /home/marcel/media:/var/www \
  corfr/h5ai