#!/bin/bash
# Verify external access via the real host
echo -n "External Home HTTP: "
curl -s -o /dev/null -w '%{http_code}\n' http://87.106.131.211/
echo -n "External News HTTP: "
curl -s -o /dev/null -w '%{http_code}\n' http://87.106.131.211/news/
echo -n "External Artikel HTTP: "
curl -s -o /dev/null -w '%{http_code}\n' http://87.106.131.211/news/artikel/
echo "Title: $(curl -s http://87.106.131.211/ | grep -o '<title>[^<]*</title>' | head -1)"
echo "Content sample: $(curl -s http://87.106.131.211/ | grep -oiE 'cannabis social club|eifelgreen' | head -1)"
