Added BASE_PATH support
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
093b2d16a0
commit
5f1d9e3c92
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user