- Add MyIPD service on port 8080.

This commit is contained in:
2025-07-07 14:42:27 +02:00
parent 2e6b651267
commit fde392fbbb
5 changed files with 24 additions and 4 deletions

View File

@@ -37,15 +37,23 @@ command=/bin/bash -c `microsocks ${MICROSOCKS_OPTIONS}`
user=microsocks'
#---------------------------------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------------------------------
ARG MYIPD_INI='[program:myipd] \n\
directory='${MICROSOCKS_HOME}' \n\
command=/bin/bash -c `while true; do myip | nc -l -q 0 ${MYIPD_PORT}; done` \n\
user=microsocks'
#---------------------------------------------------------------------------------------------------------------
RUN urpmi.update -a \
&& urpmi --force microsocks \
&& urpmi --force microsocks netcat-openbsd \
&& mkdir ${MICROSOCKS_LIB} \
&& useradd -M --home-dir ${MICROSOCKS_HOME} --password "" microsocks \
&& echo -e "${MICROSOCKSD}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/microsocksd \
&& chmod a+x /etc/init.d/microsocksd \
&& ln -s /etc/init.d/microsocksd /etc/rcD.d/S30microsocksd \
&& echo -e "${MICROSOCKSD_INI}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/supervisord.d/microsocksd.ini
&& echo -e "${MICROSOCKSD_INI}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/supervisord.d/microsocksd.ini \
&& echo -e "${MYIPD_INI}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/supervisord.d/myipd.ini
EXPOSE ${MICROSOCKS_PORT}