Skip to content

Miscellaneous and tips

Enable repository web browsing

For security reasons, browsing a repository through the web server directory listing is disabled by default, as it allows anyone to browse the content of repositories without authentication.

If you really want to enable web server directory listing, follow the steps below.

Important

This change is not persistent and will be lost at the next Repomanager upgrade. You will need to repeat these steps after each upgrade if you want to keep this feature enabled.

Step 1: Enter the container:

docker exec -it repomanager /bin/bash

Step 2: Edit the repomanager vhost configuration file:

vim /etc/nginx/sites-enabled/repomanager.conf

Step 3: Go to the bottom of the file and uncomment the autoindex directives in the location /repo block:

location /repo {
    alias $REPOS_DIR;
    autoindex on;
    autoindex_exact_size off;
    autoindex_localtime on;
    autoindex_format html;
}

Step 4: Save the file and reload nginx:

service nginx reload

Step 5: Exit the container:

exit

You can now browse the repositories through your web browser at: https://<FQDN>/repo/