A flexible server middleware for any web application. It allows you to serve static files, proxy requests to local websites or Docker containers, and enforce basic authentication with ease. Additionally, it provides structured logs for better observability and troubleshooting.
alloy
app-monitoring
developer-tools
devops
grafana
log-management
log-parsing
logging
loki
observability
promtail
structured-logging
- Go 84.1%
- JavaScript 13.1%
- Dockerfile 2.8%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| bin | ||
| examples | ||
| .gitignore | ||
| .goreleaser.yml | ||
| .npmignore | ||
| artifacthub-repo.yml | ||
| config.go | ||
| Dockerfile | ||
| Dockerfile-snapshot | ||
| functions.go | ||
| go.mod | ||
| go.sum | ||
| hash.go | ||
| INSTALL-GUIDE.md | ||
| key.go | ||
| LICENSE | ||
| main.go | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| renovate.json | ||
Web-proxy
Introduction
This project aims to provide a better logging solution to web applications that lack structured logs. These applications all mostly lack a uniform logger that is customizable as well as even non-existent in production builds. Some of these frameworks may include:
- NextJS
- PrismaORM
Getting Started
NodeJS
Install: npm i @maxpeterkaya/web-proxy
Add the following scripts to your package.json:
{
"scripts": {
"start": "npx web-proxy -app",
// Passing the -app is very important to tell web-proxy to run the web app for you.
"start:web": "YOUR COMMAND TO START THE WEB APP"
// This could be next start, remix-serve build, ng serve, node dist/main, etc.
}
}
After doing so, make sure web-proxy is properly configured
Installation Guide
Examples
Roadmap
These bullet points are in no particular order of importance or difficulty.
- Install methods
- Install guide
- Usage guide
- Templates
- Screenshots
- Benchmarks
- Configurable logs