Deployment guide

Reposilite

Overview

Reposilite is a lightweight, self-hosted Maven repository manager for the JVM ecosystem. It hosts your private Maven and Gradle artifacts, proxies and caches upstream repositories, and controls access with simple access tokens. It does all this as a single Java application, without the operational weight of a full artifact server.

This SecureAnyCloud image installs Reposilite 3.5.28 on a Temurin 21 JRE and runs it as a systemd service behind an nginx reverse proxy on port 80. Every VM generates its own manager access token on first boot.

What you get:

  • Reposilite 3.5.28 running on an Eclipse Temurin 21 JRE
  • The web dashboard and Maven/Gradle registry published on port 80 through nginx, with WebSocket upgrade and a 1 GiB body limit for large artifact deploys
  • Default releases, snapshots and private repositories, ready to use
  • A dedicated Azure data disk at /var/lib/reposilite for the repository tree, the configuration and the access-token database
  • A unique manager access token generated on first boot and written to a root-only credentials file
  • reposilite.service and nginx.service as enabled, active systemd units
  • 24/7 SecureAnyCloud support

Prerequisites

You need an active Azure subscription, an SSH key pair, and a VNet with a subnet in the target region.

Standard_B2ms (2 vCPU / 8 GiB RAM) is a good starting size.

Configure the network security group (NSG) to allow inbound 22/tcp from your management network and 80/tcp for the registry and dashboard. For public exposure, put TLS in front of the registry (see Enabling HTTPS).

Step 1 - Deploy from the Azure Marketplace

Sign in to the Azure Portal, choose Create a resource, search the Marketplace for Reposilite by SecureAnyCloud, and select Create.

On the Basics tab, pick your subscription, resource group, region and size. Under Administrator account, choose SSH public key and paste your key. Under Inbound port rules, allow SSH (22) and HTTP (80).

Review the dedicated data disk on the Disks tab, then select Review + create and Create.

Step 2 - Deploy from the Azure CLI

# Accept the Marketplace terms once per subscription (required before the first CLI deploy)
az vm image terms accept --urn sac1647283583153:reposilite-ubuntu-24-04:default:latest
az vm create \
  --resource-group <your-rg> \
  --name reposilite \
  --image sac1647283583153:reposilite-ubuntu-24-04:default:latest \
  --size Standard_B2ms \
  --admin-username azureuser \
  --ssh-key-values ~/.ssh/id_ed25519.pub \
  --vnet-name <your-vnet> --subnet <your-subnet> \
  --public-ip-sku Standard
az vm open-port --resource-group <your-rg> --name reposilite --port 80 --priority 1010

Step 3 - Connect to your VM

ssh azureuser@<vm-public-ip>

Step 4 - Confirm the services are running

Check that both services are active.

systemctl is-active reposilite.service nginx.service

Both report active. On first boot, Reposilite generates a unique manager access token and stores it in the access-token database on the data disk.

Step 5 - Retrieve your admin access token

Your VM generates a unique manager access token on first boot and writes it to a root-only file. Read it with sudo:

sudo cat /root/reposilite-credentials.txt

The file contains reposilite.admin.name (admin) and reposilite.admin.token. Store the token somewhere safe, because it grants full management access.

Step 6 - Check the health endpoint

The Reposilite dashboard returns 200 without authentication, and nginx also serves a static health endpoint:

curl -s -o /dev/null -w '%{http_code}\n' http://localhost/health

Step 7 - Open the web dashboard

Browse to http://<vm-public-ip>/. The dashboard shows your repository index. The Repository details panel offers ready-to-copy Maven, Gradle Kotlin, Gradle Groovy and SBT snippets for consuming artifacts.

Click a repository, for example releases, to browse its artifact tree. A freshly deployed image starts empty.

Select Sign in in the top right and authenticate with your access token: the name admin and the token from Step 5.

Once you are signed in as a manager, the Dashboard, Console and Settings tabs let you manage repositories, tokens and shared configuration.

Step 8 - Confirm your access token authenticates

Reposilite exposes GET /api/auth/me for verifying credentials. Pass the token as HTTP Basic auth. A valid token returns 200, and a missing or wrong token returns 401.

curl -s -o /dev/null -w '%{http_code}\n' -u 'admin:<REPOSILITE_ADMIN_TOKEN>' http://localhost/api/auth/me

Step 9 - Configure Maven to publish and consume artifacts

On a developer machine, add a server entry to ~/.m2/settings.xml. Use your token name as the username and the token value as the password.

<settings> <servers> <server> <id>reposilite-releases</id> <username>admin</username> <password><REPOSILITE_ADMIN_TOKEN></password> </server> <server> <id>reposilite-snapshots</id> <username>admin</username> <password><REPOSILITE_ADMIN_TOKEN></password> </server> </servers> </settings>

Then point your project's pom.xml at the repositories, matching the <id> values above.

<distributionManagement> <repository> <id>reposilite-releases</id> <url>http://<vm-public-ip>/releases</url> </repository> <snapshotRepository> <id>reposilite-snapshots</id> <url>http://<vm-public-ip>/snapshots</url> </snapshotRepository> </distributionManagement>

Deploy an artifact with mvn deploy. To consume artifacts, add a matching <repository> block under <repositories> in your pom.xml.

Step 10 - Configure Gradle to publish and consume artifacts

In your Gradle build (Kotlin DSL), declare the repository with your token credentials:

publishing { repositories { maven { url = uri("http://<vm-public-ip>/releases") credentials { username = "admin" password = "<REPOSILITE_ADMIN_TOKEN>" } isAllowInsecureProtocol = true } } }

Run gradle publish to deploy. To resolve dependencies from Reposilite, add the same maven { ... } block under repositories { } in your build script.

Step 11 - Confirm storage lives on the dedicated disk

The repository tree, configuration and access-token database are stored on the dedicated Azure data disk, so they survive OS changes and can be resized independently. Confirm the mount:

findmnt /var/lib/reposilite

The mount is backed by a separate Azure data disk that is captured into the image and re-provisioned on every VM.

Enabling HTTPS

The nginx reverse proxy serves plain HTTP on port 80. For public exposure, put a certificate in front of it. Add a DNS name for the VM and install certbot, or use the companion SecureAnyCloud nginx-ssl-certbot image as a TLS reverse proxy.

Keep Reposilite bound to loopback (127.0.0.1:8080), so the only public surface is the TLS-terminated proxy. Once you serve over HTTPS, you can drop isAllowInsecureProtocol from the Gradle config above.

Maintenance

  • Backups: snapshot the /var/lib/reposilite data disk to back up the repository tree, the configuration and the access-token database.
  • Tokens: manage access tokens from the Console tab in the dashboard, or with the token-generate <name> <permissions> and token-list console commands. Use the m permission for managers.
  • Service: run sudo systemctl restart reposilite after configuration changes. View logs with journalctl -u reposilite.
  • Security patches: unattended-upgrades stays enabled, so the OS keeps receiving security updates automatically.

Support

SecureAnyCloud provides 24/7 expert support for this image. Contact sales@secureanycloud.com.

Deploy on Azure

Launch Reposilite on Ubuntu 24.04 LTS on Azure with 24/7 support from SecureAnyCloud.

View this image

Need Help?

Our support team is available 24/7.

sales@secureanycloud.com

Deploy on Azure