swi-infra / docker-h5ai

h5ai docker image, the modern web server index

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#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 \
  paulvalla/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 \
  paulvalla/h5ai

About

h5ai docker image, the modern web server index