main
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Ministry of Flat HTTP Gateway
An ASP.NET Core HTTP gateway for the Ministry of Flat console executable.
The gateway is licensed under GPL-3.0-only. Ministry of Flat is third-party software and remains subject to its publisher's license; the gateway license does not apply to its executables.
Run locally
Requires Windows and the .NET 10 SDK. Startup downloads MOFBinary/UnWrapConsole3.exe if it is missing.
dotnet run --project Mof.Http.csproj
The gateway listens on http://localhost:5000.
Environment variables.
Override appsettings.json values with the standard .NET __ environment-variable syntax:
ApiPassword: optional password for the UI and API.MinistryOfFlat__BinaryDirectory: binary directory, defaultMOFBinary.MinistryOfFlat__WineExecutable: Wine executable path; defaults towineon Linux.MinistryOfFlat__DownloadUrl: HTTPS URL for the MOF release archive.MinistryOfFlat__TimeoutSeconds: process timeout, default120.MinistryOfFlat__MaxUploadBytes: upload limit, default104857600.MinistryOfFlat__MaxOutputBytes: output limit, default209715200.MinistryOfFlat__MaxConcurrentProcesses: process limit, default2.MinistryOfFlat__TempDirectory: temporary working directory.MinistryOfFlat__ExpectedSha256: optional SHA-256 checksum forUnWrapConsole3.exe.MOF_TEST_DOWNLOAD: set to1to test a fresh download in the Windows integration tests.
Languages
C#
79.8%
Python
9.1%
JavaScript
5%
HTML
3.5%
Dockerfile
2.1%
Other
0.5%