mirror of
https://github.com/retspen/webvirtcloud
synced 2024-11-22 06:14:16 +00:00
Updated Docker Installation & Update (textile)
parent
10a90ad0d9
commit
cca4927bac
1 changed files with 11 additions and 7 deletions
|
@ -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:*
|
||||
|
|
Loading…
Reference in a new issue