#!/usr/bin/env bash
cd "$(dirname "$(realpath "$0")")";
ROOT="$(realpath "$PWD/..")"
./gophor -port 1070 \
    -file-remap "$(cat "${ROOT}/config/gopher-rewrite-map")" \
    -log-output file \
    -system-log "${ROOT}/logs/system.log" \
    -access-log "${ROOT}/logs/access.log" \
    -hostname localhost \
    -root "${ROOT}/root" \
    -http-compat-cgi \
