1
0
mirror of https://github.com/fcwu/docker-ubuntu-vnc-desktop synced 2026-08-05 16:12:41 +02:00

feat: support SSL and http base access authentication

This commit is contained in:
Doro Wu
2018-03-16 13:14:11 +08:00
parent 10f4af2fab
commit 44c1f26170
5 changed files with 76 additions and 16 deletions
+13 -1
View File
@@ -7,9 +7,21 @@ build:
docker build -t $(REPO):$(TAG) .
run:
docker run -it --rm -p 6080:80 \
docker run --rm \
-p 6080:80 -p 6081:443 \
-v ${PWD}:/src:ro \
-e USER=doro -e PASSWORD=mypassword \
-e ALSADEV=hw:2,0 \
-e SSL_PORT=443 \
-e HTTP_PASSWORD=mypassword \
-v ${PWD}/ssl:/etc/nginx/ssl \
--name ubuntu-desktop-lxde-test \
$(REPO):$(TAG)
shell:
docker exec -it ubuntu-desktop-lxde-test bash
gen-ssl:
mkdir -p ssl
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-keyout ssl/nginx.key -out ssl/nginx.crt