v0.40.0
This commit is contained in:
1 parent
3b5fc8dce1
commit
748fe1d146
23 files changed
+2901
-40
No files matched your search
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"headless": {
|
||||
"acme": {
|
||||
"email": "ops@example.com",
|
||||
"agree_tos": true,
|
||||
"provider": "cloudflare",
|
||||
"dns_credentials": "/etc/rustproxy/cloudflare.ini",
|
||||
"propagation_seconds": 30,
|
||||
"domains": ["example.com,*.example.com"]
|
||||
}
|
||||
},
|
||||
"vhosts": [
|
||||
{
|
||||
"id": "apps",
|
||||
"force_ssl": true,
|
||||
"frontend": { "hosts": ["*.example.com", "example.com"] },
|
||||
"backends": [
|
||||
{ "id": "ingress", "url": "http://127.0.0.1:3000", "allow_private": true }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"headless": {
|
||||
"watch": true,
|
||||
"acme": {
|
||||
"email": "ops@example.com",
|
||||
"agree_tos": true,
|
||||
"staging": false,
|
||||
"auto": true,
|
||||
"domains": [
|
||||
["app.example.com", "www.app.example.com"]
|
||||
]
|
||||
}
|
||||
},
|
||||
"vhosts": [
|
||||
{
|
||||
"id": "app",
|
||||
"force_ssl": true,
|
||||
"websockets": true,
|
||||
"forward_client_ip": true,
|
||||
"frontend": { "hosts": ["app.example.com", "www.app.example.com"] },
|
||||
"backends": [
|
||||
{ "id": "app-1", "url": "http://10.0.0.11:3001", "allow_private": true },
|
||||
{ "id": "app-2", "url": "http://10.0.0.12:3001", "allow_private": true }
|
||||
],
|
||||
"load_balancing": {
|
||||
"algorithm": "least_connections",
|
||||
"health_check": { "mode": "http", "path": "/health", "interval_ms": 5000, "timeout_ms": 2000, "fall": 2, "rise": 1 },
|
||||
"passive_health": { "enabled": true }
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "api",
|
||||
"force_ssl": true,
|
||||
"frontend": { "hosts": ["api.example.com"] },
|
||||
"backends": [
|
||||
{ "id": "api-1", "url": "http://10.0.0.21:8080", "allow_private": true, "max_concurrent_requests": 200, "queue_timeout_ms": 2000 }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"headless": {
|
||||
"watch": true,
|
||||
"tls": {
|
||||
"certificates": [
|
||||
{ "cert_file": "/etc/ssl/app/fullchain.pem", "key_file": "/etc/ssl/app/privkey.pem" }
|
||||
],
|
||||
"directories": ["/etc/letsencrypt/live"]
|
||||
}
|
||||
},
|
||||
"vhosts": [
|
||||
{
|
||||
"id": "app",
|
||||
"force_ssl": true,
|
||||
"websockets": true,
|
||||
"forward_client_ip": true,
|
||||
"frontend": { "hosts": ["app.example.com", "www.app.example.com"] },
|
||||
"backends": [
|
||||
{ "id": "app-1", "url": "http://127.0.0.1:3001", "allow_private": true }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "shop",
|
||||
"force_ssl": true,
|
||||
"frontend": { "hosts": ["shop.example.com"] },
|
||||
"backends": [
|
||||
{ "id": "shop-1", "url": "http://127.0.0.1:3002", "allow_private": true }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
# /etc/rustproxy/environment for the packaged service in headless mode.
|
||||
# Every --flag of `rust-proxy --headless serve` has a RUST_PROXY_* variable;
|
||||
# the same settings can also live in the "headless" section of the JSON file.
|
||||
RUST_PROXY_HEADLESS=1
|
||||
RUST_PROXY_CONFIG=/etc/rustproxy/config.json
|
||||
RUST_PROXY_HEALTH_LISTEN=127.0.0.1:9091
|
||||
RUST_PROXY_WATCH=1
|
||||
|
||||
# Existing certificate files (comma-separated, paired by position) or directories
|
||||
#RUST_PROXY_TLS_CERT_FILE=/etc/ssl/app/fullchain.pem
|
||||
#RUST_PROXY_TLS_KEY_FILE=/etc/ssl/app/privkey.pem
|
||||
#RUST_PROXY_TLS_CERT_DIR=/etc/letsencrypt/live
|
||||
|
||||
# Automatic DV certificates (Let's Encrypt). Certificates separated by ';'
|
||||
RUST_PROXY_ACME_EMAIL=ops@example.com
|
||||
RUST_PROXY_ACME_AGREE_TOS=1
|
||||
RUST_PROXY_ACME_AUTO=1
|
||||
#RUST_PROXY_ACME_DOMAINS=app.example.com,www.app.example.com;api.example.com
|
||||
#RUST_PROXY_ACME_STAGING=1
|
||||
#RUST_PROXY_ACME_PROVIDER=cloudflare
|
||||
#RUST_PROXY_ACME_DNS_CREDENTIALS=/etc/rustproxy/cloudflare.ini
|
||||
|
||||
# Without a configuration file: one vhost per route (';' between routes)
|
||||
#RUST_PROXY_ROUTES=app.example.com,www.app.example.com=http://127.0.0.1:3000;api.example.com=http://127.0.0.1:8080
|
||||
#RUST_PROXY_FORCE_HTTPS=1
|
||||
Reference in new issue
Block a user