#!/bin/sh

uci set uhttpd.main.script_timeout='300'
uci set uhttpd.main.network_timeout='300'
uci set uhttpd.main.rpctimeout='300'
uci set uhttpd.main.max_requests='6'
uci set uhttpd.main.redirect_https='1'
uci set uhttpd.main.http_keepalive='1'
uci set uhttpd.defaults.key_type='ec'
uci set uhttpd.defaults.ec_curve='P-256'
uci commit uhttpd

# remove LuCI cache
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache

exit 0
