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</code></pre> <pre><code>cd webvirtcloud/</code></pre> # Copy the setting.py file <pre><code>cp webvirtcloud/settings.py.template webvirtcloud/settings.py</code></pre> -# Generate random number using Python. *Copy and paste the entire command*: -<pre><code>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 -</code></pre> +# Generate random number using Python script: +<pre><code>python3 conf/runit/secret_generator.py</code></pre> # Copy 'generated code' and paste it to webvirtcloud/settings.py as SECRET_KEY = '' # Build the docker container <pre><code>docker build -t retspen/webvirtcloud:1 .</code></pre> @@ -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 +<pre><code>##Websock public port - 80 or 443 if reverse-proxy, else 6080 +WS_PUBLIC_PORT = 80 +</code></pre> +# Run webvirtcloud container with that command: +<pre><code>docker run -d -p 80:80 retspen/webvirtcloud:1</code></pre> + *** *Additional Information:*