$ 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
- Create a password file. Set up http auth with nginx
- Create nginx conf file or look at the one in
nginx_config_examples/
- 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