2026-10-04 21:34:57 +02:00
2026-01-23 10:32:54 +01:00
2026-10-04 21:34:57 +02:00
2026-10-04 10:54:44 +02:00
2024-08-02 20:25:41 +02:00
2026-08-03 20:06:06 +02:00
2022-11-22 09:07:00 +01:00
2026-07-31 15:00:07 +02:00
2026-04-15 06:12:28 +02:00

MSYS2 main server

Provides:

  • nginx service for serving installers and packages (ports 80 and 443)
  • rsync server for serving the same (port 873, and 874 with SSL)
  • daemon and http server for staging repositories
  • letsencrypt integration
  • packages web interface and API
  • redirects from non-canonical domains
  • network statistics
  • instant messaging bridge between Discord and Gitter / OFTC IRC

Setup

  • Clone.
  • The storage is pointed to /srv/msys2repo so /srv/msys2repo/mingw/x86_64/ should exist.
  • Run docker compose up -d.
  • Assign DNS records for:
    • repo.msys2.org
    • packages.msys2.org
    • mirror.msys2.org
    • autobuildcontroller.msys2.org
    • msys2.org
    • NOT www.msys2.org, that is on GitHub Pages.
    • msys2.com
    • www.msys2.com
    • msys2.net
    • www.msys2.net
    • mingw-w64.net
    • www.mingw-w64.net
    • mingw-w64.org
    • NOT www.mingw-w64.org, that is on GitHub Pages.

Test

Once everything is set up and running you can run python3 -m unittest tests/test_server.py which checks if all services are up and responding properly.

Staging repositories

Add to /etc/pacman.conf above the official repositories like this:

[staging]
Server = https://repo.msys2.org/staging/
SigLevel = Never

[mingw32]
Include = /etc/pacman.d/mirrorlist.mingw32

[mingw64]
Include = /etc/pacman.d/mirrorlist.mingw64

[msys]
Include = /etc/pacman.d/mirrorlist.msys

Local Development

There is a docker-compose variant in docker-compose.dev.yml that only uses HTTP and contains a limited set of services for local testing.

It provides the following services:

Run it with docker compose -f docker-compose.dev.yml .... For example docker compose -f docker-compose.dev.yml run repo and then access http://repo.localhost:9090/

S
Description
No description provided
Readme BSD-3-Clause
312 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 45.9%
Shell 29.4%
Dockerfile 24.7%