mcpizza0 / random Goto Github PK
View Code? Open in Web Editor NEWRandom stuff and bounties from Omar
Random stuff and bounties from Omar
TL;DR: Have 1 address abc.123.com
. when I am running dev server locally, route to me. If not, route to another address.
Long version
UnInbox, has some long running servers that live in a vps and send out webhook messages
I need a proxy with failover capabilities to live permanently online (vps is fine)
when the app is running locally on my machine, it will route to me
when im not, it will route to another web server
I tried with Cloudflare Tunnels and CaddyServer
i can access the tunnel directly using https://tunnelAddress.mydomain.dev
CaddyServer installed on a vps and given it the following config
proxy.mydomain.dev {
reverse_proxy * {
to https://tunnelAddress.mydomain.dev https://failover.mydomain.dev
lb_policy first
lb_try_duration 5s
lb_try_interval 250ms
fail_duration 30s
max_fails 1
unhealthy_status 5xx
unhealthy_latency 2s
unhealthy_request_count 1
}
}
the path https://tunnelAddress.mydomain.dev
works fine when accessed directly - validating that the tunnel is up
when accessing via proxy.mydomain.dev
i get an error ERR_TOO_MANY_REDIRECTS
Offering a bounty for a solution that works
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.