Quick HTTP File Server for DevOps with a Simple Script
dev.to·15h·
Discuss: DEV
🛠Browser DevTools
Preview
Report Post

As a DevOps engineer or system administrator, you might want to quickly spin up a HTTP server that allows to access files from other machines or to test functionality of programs and apps. Doing so would traditionally require you to install and configure a web server such as nginx or Apache, or to run a Docker image with volumes to make your target files accessible.

With .NET file-based apps, we can create script files that are easily capable of using any library hosted on nuget. In this article, we will demonstrate how to use the GenHTTP webserver to serve a local directory via HTTP.

Pre-Requisites

To run the script, you will need the [.NET SDK](https://dotnet.m…

Similar Posts

Loading similar posts...