Added BASE_PATH support

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2023-01-19 01:38:26 -08:00
parent 093b2d16a0
commit 5f1d9e3c92
2 changed files with 9 additions and 1 deletions

View File

@ -47,6 +47,10 @@ RUN npm upgrade && npm install
WORKDIR /website/client WORKDIR /website/client
COPY /client/package*json /website/client/ COPY /client/package*json /website/client/
RUN npm upgrade && npm install RUN npm upgrade && npm install
COPY /server /website/server
WORKDIR /website/server
RUN npm upgrade && npm install
COPY /config/default.json /website/config/default.json COPY /config/default.json /website/config/default.json
COPY /*js /website/ COPY /*js /website/
@ -54,7 +58,6 @@ COPY /src /website/src
COPY /client/public /website/client/public COPY /client/public /website/client/public
COPY /client/src /website/client/src COPY /client/src /website/client/src
COPY /scanner /website/scanner COPY /scanner /website/scanner
COPY /server /website/server
COPY /frontend /website/frontend COPY /frontend /website/frontend
COPY /ketrface /website/ketrface COPY /ketrface /website/ketrface

View File

@ -3,6 +3,11 @@
if [[ "${TARGET_PORT}" != "" ]]; then if [[ "${TARGET_PORT}" != "" ]]; then
sed -i -e "s,8123,${TARGET_PORT},g" /etc/nginx/sites-enabled/default sed -i -e "s,8123,${TARGET_PORT},g" /etc/nginx/sites-enabled/default
fi fi
if [[ "${BASE_PATH}" != "" ]]; then
sed -i -e "s,/ident,${BASE_PATH}/ident,g" \
/etc/nginx/snippets/active.location
fi
/usr/sbin/nginx /usr/sbin/nginx
mkdir -p /var/lib/shellinabox mkdir -p /var/lib/shellinabox