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: storage-providers/pdp/nginx-reverse-proxy.md
+13-15Lines changed: 13 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,14 @@ description: >-
6
6
7
7
# Enable HTTPS for PDP
8
8
9
-
This guide documents a working nginx setup on **Ubuntu 22.04** that provides HTTPS access to Filecoin PDP (Curio) services using Let's Encrypt certificates. The configuration is based on a production system serving `calib.ezpdpz.net` and `calib2.ezpdpz.net`.
9
+
This guide documents a working nginx setup on **Ubuntu 22.04** that provides HTTPS access to Filecoin PDP (Curio) services using Let's Encrypt certificates. The examples use the placeholder domains `pdp.example.com` and `pdp2.example.com` — replace them with your own domains throughout.
10
10
11
11
{% hint style="warning" %}
12
12
**This setup is specific to one example environment.** You must adjust hostnames, internal IP addresses, and paths to match your own system and network configuration.
13
13
{% endhint %}
14
14
15
15
{% hint style="info" %}
16
-
**Strong recommendation:**Before making any configuration changes, install an AI coding assistant such as Claude Code or OpenAI Codex. These tools can help you verify syntax, debug nginx and Certbot issues, and safely adapt the configuration to your own setup.
16
+
**Before making any configuration changes,** back up your existing nginx configuration and validate every change with `sudo nginx -t` before reloading. This catches syntax errors before they take down the service.
17
17
{% endhint %}
18
18
19
19
***
@@ -76,20 +76,20 @@ certbot --version
76
76
77
77
## 3️⃣ Configure the Virtual Host
78
78
79
-
Create a configuration file for your domain. Replace `calib.ezpdpz.net` with your domain and `192.168.1.160` with your Curio service IP.
79
+
Create a configuration file for your domain. Replace `pdp.example.com` with your domain and `192.168.1.160` with your Curio service IP.
Replace the contents with the following. Substitute `YOUR_DOMAIN` and `YOUR_CURIO_IP` with your own values.
@@ -223,7 +223,7 @@ sudo systemctl reload nginx
223
223
224
224
**Proxy settings**
225
225
226
-
*`proxy_pass http://YOUR_CURIO_IP:443`: forward to the Curio service (note: HTTP, not HTTPS — Curio handles TLS internally via DelegateTLS).
226
+
*`proxy_pass http://YOUR_CURIO_IP:443`: forward to the Curio service over plain HTTP. With `DelegateTLS = true`, Curio serves HTTP (even on port 443) and delegates TLS termination to nginx, so nginx is the only component encrypting traffic. Keep this link on a trusted LAN.
227
227
*`proxy_set_header` directives: preserve client information (original host, real IP, forwarded chain, and scheme).
228
228
229
229
***
@@ -249,15 +249,15 @@ Restart Curio after making configuration changes.
249
249
Test the HTTPS connection:
250
250
251
251
```sh
252
-
curl -I https://calib.ezpdpz.net
252
+
curl -I https://YOUR_DOMAIN
253
253
```
254
254
255
255
You should see a response from your Curio service through nginx.
0 commit comments