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:*