https://github.com/mback2k/simple-cgi-server
A simple CGI server to host legacy CGI scripts.
https://github.com/mback2k/simple-cgi-server
cgi golang-application http-server simple
Last synced: about 1 year ago
JSON representation
A simple CGI server to host legacy CGI scripts.
- Host: GitHub
- URL: https://github.com/mback2k/simple-cgi-server
- Owner: mback2k
- License: gpl-3.0
- Created: 2019-02-24T16:57:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-29T17:22:35.000Z (almost 3 years ago)
- Last Synced: 2025-03-19T01:03:22.014Z (about 1 year ago)
- Topics: cgi, golang-application, http-server, simple
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
simple-cgi-server
=================
This Go program is a simple CGI server to host legacy CGI scripts.
This server is intended to be running behind a reverse proxy or
loadbalancer, like [traefik](https://traefik.io/).
[](https://travis-ci.org/mback2k/simple-cgi-server)
[](https://godoc.org/github.com/mback2k/simple-cgi-server)
[](https://goreportcard.com/report/github.com/mback2k/simple-cgi-server)
Dependencies
------------
The following awesome Go libraries are dependencies:
- https://github.com/sirupsen/logrus
- https://github.com/spf13/viper
Installation
------------
You basically have two options to install this Go program package:
1. If you have Go installed and configured on your PATH, just do the following go get inside your GOPATH to get the latest version:
```
go get -u github.com/mback2k/simple-cgi-server
```
2. If you do not have Go installed and just want to use a released binary,
then you can just go ahead and download a pre-compiled Linux amd64 binary from the [Github releases](https://github.com/mback2k/simple-cgi-server/releases).
Finally put the simple-cgi-server binary onto your PATH and make sure it is executable.
Configuration
-------------
The following YAML file is an example configuration to serve Python scripts:
```
Address: "localhost:8080"
HandlerList:
- FileExt: .py
Handler: python
Logging:
Level: info
```
Save this file in one of the following locations and run `./simple-cgi-server`:
- /etc/simple-cgi-server/simple-cgi-server.yaml
- $HOME/.simple-cgi-server.yaml
- $PWD/simple-cgi-server.yaml
License
-------
Copyright (C) 2019 Marc Hoersken
This software is licensed as described in the file LICENSE, which
you should have received as part of this software distribution.
All trademarks are the property of their respective owners.