From cca4927bac5981c5822b97b1a8af29fd5c0104a8 Mon Sep 17 00:00:00 2001 From: catborise Date: Mon, 29 Jun 2020 09:40:22 +0300 Subject: [PATCH] Updated Docker Installation & Update (textile) --- Docker-Installation-&-Update.textile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Docker-Installation-&-Update.textile b/Docker-Installation-&-Update.textile index f3d2b1a..5766f26 100644 --- a/Docker-Installation-&-Update.textile +++ b/Docker-Installation-&-Update.textile @@ -12,13 +12,8 @@ yum install git python
cd webvirtcloud/
# Copy the setting.py file
cp webvirtcloud/settings.py.template webvirtcloud/settings.py
-# Generate random number using Python. *Copy and paste the entire command*: -
echo "import random, string" > /tmp/key.py && \
-echo "haystack = string.ascii_letters + string.digits + string.punctuation" >> /tmp/key.py && \
-echo "print(''.join([random.SystemRandom().choice(haystack) for _ in range(50)]))" >> /tmp/key.py && \
-python /tmp/key.py && \
-rm /tmp/key.py
-
+# Generate random number using Python script: +
python3 conf/runit/secret_generator.py
# Copy 'generated code' and paste it to webvirtcloud/settings.py as SECRET_KEY = '' # Build the docker container
docker build -t retspen/webvirtcloud:1 .
@@ -31,6 +26,15 @@ rm /tmp/key.py # Change your admin password # Add new host +*** +*Reverse Proxy* +# Edit WS_PUBLIC_PORT in settings.py which is default value 6080 +
##Websock public port - 80 or 443 if reverse-proxy, else 6080
+WS_PUBLIC_PORT = 80
+
+# Run webvirtcloud container with that command: +
docker run -d -p 80:80 retspen/webvirtcloud:1
+ *** *Additional Information:*