Giter Site home page Giter Site logo

stacksjs / reverse-proxy Goto Github PK

View Code? Open in Web Editor NEW
1.0 7.0 0.0 1.02 MB

A modern, fast reverse proxy. And a better local environment.

Home Page: https://reverse-proxy.sh

License: MIT License

TypeScript 80.87% JavaScript 19.13%
bun cli local-development reverse-proxy zero-config

reverse-proxy's Introduction

Social Card of this repo

npm version GitHub Actions Commitizen friendly

A Better Developer Experience

A zero-config reverse proxy for local development with SSL support, custom domains, and more.

Features

  • Reverse Proxy
  • SSL Support (HTTPS by default)
  • Custom Domains (with wildcard support)
  • Auto HTTP-to-HTTPS Redirection
  • /etc/hosts Management (auto-updating)
  • Dependency-Free Binary
  • Zero-Config Setup

Install

bun install -d bun-reverse-proxy

Alternatively, you can install:

brew install reverse-proxy # wip
pkgx install reverse-proxy # wip

Get Started

There are two ways of using this reverse proxy: as a library or as a CLI.

Library

Given the npm package is installed:

import { startProxy } from 'bun-reverse-proxy'

startProxy({
  from: 'localhost:3000',
  to: 'my-project.localhost' // or try 'my-project.test'
})

CLI

reverse-proxy --from localhost:3000 --to my-project.localhost
reverse-proxy --from localhost:8080 --to my-project.test --keyPath ./key.pem --certPath ./cert.pem
reverse-proxy --help
reverse-proxy --version

Configuration

The Reverse Proxy can be configured using a reverse-proxy.config.ts (or reverse-proxy.config.js) file and it will be automatically loaded when running the reverse-proxy command.

// reverse-proxy.config.ts (or reverse-proxy.config.js)
export default {
  'localhost:3000': 'stacks.localhost'
}

Then run:

reverse-proxy start

To learn more, head over to the documentation.

Testing

bun test

Changelog

Please see our releases page for more information on what has changed recently.

Contributing

Please review the Contributing Guide for details.

Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discussions on GitHub

For casual chit-chat with others using this package:

Join the Stacks Discord Server

Postcardware

Two things are true: Stacks OSS will always stay open-source, and we do love to receive postcards from wherever Stacks is used! ๐ŸŒ We also publish them on our website. And thank you, Spatie

Our address: Stacks.js, 5710 Crescent Park #107, Playa Vista 90094, CA.

Sponsors

We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.

Credits

License

The MIT License (MIT). Please see LICENSE for more information.

Made with ๐Ÿ’™

reverse-proxy's People

Contributors

chrisbbreuer avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

reverse-proxy's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Using npm packages for Renovate presets is now deprecated. Please migrate to repository-based presets instead.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

bun
package.json
  • @stacksjs/cli ^0.59.11
  • @stacksjs/storage ^0.59.11
  • c12 ^1.10.0
  • @stacksjs/development ^0.59.11
  • @types/bun ^1.0.12
  • @types/node ^20.12.4
  • bun-plugin-dts-auto ^0.10.0
  • vitepress ^1.0.2
github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • oven-sh/setup-bun v1
  • actions/cache v4
  • actions/checkout v4
  • oven-sh/setup-bun v1
  • actions/cache v4
  • actions/checkout v4
  • oven-sh/setup-bun v1
  • actions/cache v4
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v4
  • oven-sh/setup-bun v1
  • actions/cache v4

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.