#!/bin/bash

source /usr/local/pf/containers/systemd-service

name=api-frontend

args=`base_args $name`
args="$args -v /usr/local/pf/var/conf:/usr/local/pf/var/conf -v /usr/local/pf/conf:/usr/local/pf/conf"
# Read-only: pfhttpd only reads these files (log-tailer live sessions and
# the logs/history endpoint); only rsyslogd on the host writes them.
args="$args -v /usr/local/pf/logs:/usr/local/pf/logs:ro"
args="$args -v /usr/share/freeradius:/usr/share/freeradius"
args="$args -v /var/log:/var/log:ro"
args="$args -p 9999:9999"
args="$args -p 2019:2019"

run $name "$args"
