diff options
| author | Your Name <you@example.com> | 2025-12-29 19:40:46 +0800 |
|---|---|---|
| committer | Your Name <you@example.com> | 2025-12-29 19:40:46 +0800 |
| commit | 745ca5a613d3dbac8143a62e4a90e9833422e023 (patch) | |
| tree | 35725aa72df3468bb25cb06c49d8720a5f09b4f2 | |
| parent | 75cae30fbc9816f7ad5138935c672b459c9dc813 (diff) | |
Update README with host setup
| -rw-r--r-- | README | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -8,6 +8,14 @@ Requirements: | |||
| 8 | - Domain name pointing to the public IP | 8 | - Domain name pointing to the public IP |
| 9 | TLS certificates are auto-generated by Caddy and stored in a container volume. | 9 | TLS certificates are auto-generated by Caddy and stored in a container volume. |
| 10 | 10 | ||
| 11 | Host setup (one-time): | ||
| 12 | cat > /etc/sysctl.d/99-container-routing.conf << 'EOF' | ||
| 13 | net.ipv4.ip_forward=1 | ||
| 14 | net.ipv4.conf.enp1s0.proxy_arp=1 | ||
| 15 | EOF | ||
| 16 | sysctl -p /etc/sysctl.d/99-container-routing.conf | ||
| 17 | mkdir -p /git | ||
| 18 | |||
| 11 | Build: | 19 | Build: |
| 12 | podman build -t cgit-caddy . | 20 | podman build -t cgit-caddy . |
| 13 | 21 | ||
