For a quick introduction, check the ASCII recording of a small configuration file for Proksi:
{% embed url="https://asciinema.org/a/ORhG5Na2SHIBI8TH2mPPUHMVZ" %}
Proksi can be your reverse proxy or a load balancer in front of your public IPs
Proksi is a simple, lightweight, and easy-to-use proxy server that automatically handles SSL, HTTP, and DNS traffic. It is designed to be used as a standalone proxy server or as a component in a larger system. Proksi is written in Rust and uses Cloudflare Pingora as its core networking library.
Create a configuration file
mkdir config
touch config/proksi.hcl
Add a simple route, let's try docs.proksi.info
as our proxy route:
#
lets_encrypt {
enabled = true
staging = true
email = "my@email.com"
}
paths {
# Where to save certificates?
lets_encrypt = "./"
# You can even use functions here
# lets_encrypt = env("HOME")
}
# A list of routes Proksi should handle
routes = [
{
# You might need to edit your /etc/hosts file here.
host = "mysite.localhost",
upstreams = [
{
ip = "docs.proksi.info"
port = 443
}
]
}
]
Of the many features Proksi offers is the ability to load balance to your infrastructure or any IP that supports your host configurations. Other features of Proksi also include:
- Automatic Docker and Docker Swarm service discovery through labels
- Built-in most common middlewares such as OAuth, Rate Limiting, CDN Caching and others
- The ability of running it as a single binary in your system
- Automatic SSL through Let's Encrypt and redirection from HTTP to HTTPS
- Configuration through HCL with support for functions
- Many others.