interplane-forge
INTERPLANE Forge
Brought by drakestapleton
interplane-forge / infra / spark / nginx / sites-http-redirect
| 1 | # Spark front door, plain http (TCP 80) -> https. forge-iplreach (L1008 QW1, card t_0ef9cf5d), 2026-11-09. |
| 2 | # Goes to /etc/nginx/sites-enabled/http-redirect (installed by infra/spark/edge-http-apply.sh). |
| 3 | # |
| 4 | # Why: before this, http://interplane.io/ timed out for every outside visitor (check-host.net 17 of 17 |
| 5 | # nodes "Connection timed out"; an outside fetch tool got no content) while https answered. Nothing on |
| 6 | # the Spark or the Pi listened for public port 80. Tools and browsers that start on http:// saw a dead site. |
| 7 | # |
| 8 | # Path: router TCP 80 -> 192.168.1.108:80 -> nft (table inet atlas_ingress, chain http80_redirect) |
| 9 | # rewrites the port to 4480 -> this server -> 301 https://<same name><same path>. |
| 10 | # Port 4480, not 80: apache2 (Ubuntu default page) already holds *:80 on the Spark, and the firewall |
| 11 | # keeps that apache unreachable from the network. Leaving apache alone means no process we did not |
| 12 | # start is restarted. |
| 13 | # Undo: infra/spark/edge-http-rollback.sh (restores the firewall file, removes this file, reloads nginx). |
| 14 | |
| 15 | # Unknown or missing Host: close without an answer, as the :443 router refuses unknown TLS names. |
| 16 | server { |
| 17 | listen 192.168.1.108:4480 default_server; |
| 18 | server_name _; |
| 19 | access_log off; |
| 20 | return 444; |
| 21 | } |
| 22 | |
| 23 | server { |
| 24 | listen 192.168.1.108:4480; |
| 25 | server_name interplane.io www.interplane.io www.aienos.com aienos.com; |
| 26 | access_log off; |
| 27 | # $host is one of the four names above (exact server_name match), never a visitor-chosen string. |
| 28 | return 301 https://$host$request_uri; |
| 29 | } |