Simple reverse proxy server
  • Go 93.3%
  • HTML 4%
  • Shell 1.5%
  • Uno 1.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-26 11:02:13 +05:00
.gitattributes Initial commit 2023-12-28 16:00:04 +05:00
.gitignore Initial commit 2023-12-28 16:00:04 +05:00
app.go Switch config format to UNO 2026-11-17 19:51:12 +05:00
config.go Add template for error page 2026-10-09 09:40:15 +05:00
consts.go Switch config format to UNO 2026-11-17 19:51:12 +05:00
defaultErrorPage.html Fix double header sending 2026-11-11 09:19:46 +05:00
fileserver.go Error page for file servers 2026-10-19 16:34:53 +05:00
go.mod Update deps 2026-11-26 10:46:19 +05:00
go.sum Update deps 2026-11-26 10:46:19 +05:00
gonx.service Allow unix socket for systemd unit 2025-06-03 10:35:39 +05:00
gonx.uno Switch config format to UNO 2026-11-17 19:51:12 +05:00
handlers.go Fix memory leaks, add stats handler 2026-03-29 10:09:33 +05:00
LICENSE Initial commit 2023-12-28 16:00:04 +05:00
listener.go Initial commit 2023-12-28 16:00:04 +05:00
main.go Disable timestamps if running in systemd 2026-03-30 20:10:36 +05:00
mapping.go Error page for file servers 2026-10-19 16:34:53 +05:00
PKGBUILD Version 0.0.13 2026-11-26 10:46:48 +05:00
README.md Update config format info 2026-11-26 11:02:13 +05:00
responsewriter.go Fix double header sending 2026-11-11 09:19:46 +05:00
sniff.go Error page for file servers 2026-10-19 16:34:53 +05:00

gonx

Simple reverse proxy server.

Features:

  • Simple TCP redirection
  • Simple static file server

Usage

  1. Install package

  2. Edit config in /etc/gonx.uno

  3. Start application with systemd:

    systemctl start gonx.service

Config example

Config stored in UNO format

// Log level (DEBUG, INFO, WARN, ERROR)
LogLevel: DEBUG

// Path to TLS-certificates generated by Certbot
TlsKeysDir: /etc/letsencrypt/live

// TLS listen address
TlsListenAddr: :443

// HTTP listen address
HttpListenAddr: :80

// Path for ACME challenge files
AcmeChallengePath: /var/lib/letsencrypt


// Map of hostname -> redirect URL
TLS:
// TCP redirect
. git.host.com: tcp://127.0.0.1:8001

// serve unix socket
. unix.host.com: unix:///var/lib/app/app.socket"

// simple static file server from `/srv/http`
. www.host.com: file:///srv/http"