When the container is started for the first time we save a copy of the original `/etc/apache2/envvars` file to `/etc/apache2/envvars.orig`. On a container restart we copy the original file `/etc/apache2/envvars.orig` to `/etc/apache2/envvars` and modify it as usual without appending settings to `/etc/apache2/envvars` over and over.
Before starting Apache in the foreground we ensure that it is not running by explicitly stopping the service.
With this change, no destructive requests (e.g. PUT, POST, DELETE) are allowed
on the frontend site which proxies through to the actual registry. This should
make the browse only mode more safe.
See PR #15
This patch adds browse mode to hide any administration feature e.g.
delete repository/tag, create tag.
If you run container with "-e ENV_BROWSE_MODE=true", this feature will
be enabled.