readme
This commit is contained in:
parent
2d480fde98
commit
1e213afbf5
32
readme.md
32
readme.md
@ -1,9 +1,11 @@
|
|||||||
# Reviewboard in a container
|
# Reviewboard in a container
|
||||||
|
|
||||||
|
## Preparation
|
||||||
* Create a database and a database user on a MariaDB/MySQL server, grant all privileges on all tables of that database to that user
|
* Create a database and a database user on a MariaDB/MySQL server, grant all privileges on all tables of that database to that user
|
||||||
* If you want to inject custom CA certificates for repository access, create a volume, put these certificates (use the extension .ext) into and mount it to `/usr/local/share/ca-certificates/` of the container when starting it.
|
* If you want to inject custom CA certificates for repository access, create a volume, put these certificates (use the extension .ext) into and mount it to `/usr/local/share/ca-certificates/` of the container when starting it.
|
||||||
* Start the container with something like
|
|
||||||
|
|
||||||
|
|
||||||
|
## Example Start script
|
||||||
<pre>
|
<pre>
|
||||||
<code>
|
<code>
|
||||||
docker run \
|
docker run \
|
||||||
@ -22,6 +24,34 @@ docker run \
|
|||||||
</code>
|
</code>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
## Reverse Proxy configuration
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
<code>
|
||||||
|
<VirtualHost 0.0.0.0:443>
|
||||||
|
ServerName ...
|
||||||
|
ServerAlias ...
|
||||||
|
|
||||||
|
CustomLog /usr/local/apache2/logs/access.log combined
|
||||||
|
ErrorLog /usr/local/apache2/logs/error.log
|
||||||
|
|
||||||
|
|
||||||
|
<Location /reviews/>
|
||||||
|
ProxyPass "http://servicehost:8082/reviews/" nocanon
|
||||||
|
ProxyPassReverse "http://servicehost:8082/reviews/"
|
||||||
|
ProxyPreserveHost On
|
||||||
|
RequestHeader set X-Forwarded-Proto "https"
|
||||||
|
</Location>
|
||||||
|
|
||||||
|
SSLCertificateKeyFile ...
|
||||||
|
SSLCertificateFile ...
|
||||||
|
SSLCACertificateFile ...
|
||||||
|
|
||||||
|
SSLEngine on
|
||||||
|
</VirtualHost>
|
||||||
|
</code>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
The `Location` shall match to the `SITEROOT` set when starting the container.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user