You're getting 404 because the base URL path /airflow is incorrect. Airflow's webserver serves from root (/), not /airflow.
Try curling:
curl http://localhost:8080/
Also, set:
AIRFLOW__WEBSERVER__BASE_URL=http://localhost:8080
Remove /airflow from any URLs or configs unless you're reverse proxying.