From c0eb0cb42cdd5c7b612de828b54e6ca06d123085 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Thu, 27 Jul 2023 17:43:33 +0800 Subject: [PATCH] Chore: Add test radius dockerfile --- test/test-radius.dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/test-radius.dockerfile diff --git a/test/test-radius.dockerfile b/test/test-radius.dockerfile new file mode 100644 index 00000000..3f577ede --- /dev/null +++ b/test/test-radius.dockerfile @@ -0,0 +1,13 @@ +# Container running a test radius server +# More instructions in https://github.com/louislam/uptime-kuma/pull/1635 + +FROM freeradius/freeradius-server:latest + +RUN mkdir -p /etc/raddb/mods-config/files/ + +RUN echo "client net {" > /etc/raddb/clients.conf +RUN echo " ipaddr = 172.17.0.0/16" >> /etc/raddb/clients.conf +RUN echo " secret = testing123" >> /etc/raddb/clients.conf +RUN echo "}" >> /etc/raddb/clients.conf + +RUN echo "bob Cleartext-Password := \"testpw\"" > /etc/raddb/mods-config/files/authorize