You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PROXY.md
+26-3Lines changed: 26 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,37 @@ Dispenser includes a built-in, high-performance reverse proxy powered by [Pingor
5
5
## Overview
6
6
7
7
The Dispenser proxy listens on ports 80 (HTTP) and 443 (HTTPS). It automatically:
8
-
1.Redirects all HTTP traffic to HTTPS.
8
+
1.Optionally redirects HTTP traffic to HTTPS (configurable).
9
9
2. Routes incoming requests to the correct container based on the `Host` header.
10
10
3. Manages SSL/TLS certificates via Let's Encrypt or self-signed "simulation" mode.
11
11
4. Handles Zero-Downtime reloads when configuration changes or certificates are updated.
12
12
13
-
## Global Toggle
13
+
## Global Configuration
14
14
15
-
The reverse proxy is enabled by default. You can explicitly enable or disable it in your main `dispenser.toml` file. When disabled, both the proxy server (ports 80/443) and the automatic certificate maintenance tasks are turned off.
15
+
The reverse proxy is enabled by default and defaults to enforcing HTTPS. You can configure the behavior in your main `dispenser.toml` file.
16
+
17
+
### Proxy Strategy
18
+
19
+
The `strategy` field determines how Dispenser handles HTTP (80) and HTTPS (443) traffic.
20
+
21
+
```toml
22
+
# dispenser.toml
23
+
24
+
[proxy]
25
+
enabled = true
26
+
# Available options: "https-only", "http-only", "both"
27
+
strategy = "https-only"
28
+
```
29
+
30
+
| Strategy | Behavior |
31
+
| :--- | :--- |
32
+
|`https-only`| (Default) Port 80 redirects all traffic to Port 443. SSL is required. |
33
+
|`http-only`| Port 80 serves application traffic. Port 443 and SSL management are disabled. |
34
+
|`both`| Both ports serve application traffic. No automatic redirects occur. |
35
+
36
+
### Global Toggle
37
+
38
+
When the `enabled` flag is set to `false`, both the proxy server and the automatic certificate maintenance tasks are turned off.
0 commit comments