@@ -34,10 +34,47 @@ A Dockerized Caddy reverse proxy with automatic SSL certificate generation for l
3434
35354 . Install the CA certificate (one-time):
3636
37+ Replace ` local.example.com ` with your configured domain.
38+
39+ ** macOS:**
40+
3741 ``` bash
3842 sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ./certs/local.example.com.rootCA.pem
3943 ```
4044
45+ ** Linux (Debian/Ubuntu):**
46+
47+ ``` bash
48+ sudo cp ./certs/local.example.com.rootCA.pem /usr/local/share/ca-certificates/local.example.com.crt
49+ sudo update-ca-certificates
50+ ```
51+
52+ ** Linux (Fedora/RHEL):**
53+
54+ ``` bash
55+ sudo cp ./certs/local.example.com.rootCA.pem /etc/pki/ca-trust/source/anchors/local.example.com.pem
56+ sudo update-ca-trust
57+ ```
58+
59+ ** Linux (Arch):**
60+
61+ ``` bash
62+ sudo trust anchor ./certs/local.example.com.rootCA.pem
63+ ```
64+
65+ ** Windows (PowerShell as Administrator):**
66+
67+ ``` powershell
68+ Import-Certificate -FilePath .\certs\local.example.com.rootCA.pem -CertStoreLocation Cert:\LocalMachine\Root
69+ ```
70+
71+ If ` .pem ` import fails, convert to ` .cer ` first:
72+
73+ ``` powershell
74+ openssl x509 -in .\certs\local.example.com.rootCA.pem -out .\certs\local.example.com.rootCA.cer
75+ Import-Certificate -FilePath .\certs\local.example.com.rootCA.cer -CertStoreLocation Cert:\LocalMachine\Root
76+ ```
77+
41785 . Start the proxy:
4279
4380 ``` bash
@@ -50,10 +87,10 @@ Note (Linux): Requires Docker Engine 20.10+ for `host-gateway` support.
5087
5188## Configuration
5289
53- | Variable | Default | Description |
54- | --------------- | ----------- | ---------------------- |
55- | ` DOMAIN ` | ` localhost ` | Domain for SSL cert |
56- | ` UPSTREAM_URL ` | ` http://host.docker.internal:3000 ` | URL for your local app |
90+ | Variable | Default | Description |
91+ | -------------- | ----------------------- ----------- | ---------------------- |
92+ | ` DOMAIN ` | ` localhost ` | Domain for SSL cert |
93+ | ` UPSTREAM_URL ` | ` http://host.docker.internal:3000 ` | URL for your local app |
5794
5895## Ports
5996
0 commit comments