update front docker: stun
This commit is contained in:
parent
94328771bf
commit
092a14fa09
@ -19,6 +19,7 @@ ARG JITSI_URL
|
|||||||
ARG JITSI_PRIVATE_MODE
|
ARG JITSI_PRIVATE_MODE
|
||||||
ARG PUSHER_URL
|
ARG PUSHER_URL
|
||||||
ARG ADMIN_URL
|
ARG ADMIN_URL
|
||||||
|
ARG STUN_SERVER
|
||||||
ARG TURN_SERVER
|
ARG TURN_SERVER
|
||||||
ARG TURN_USER
|
ARG TURN_USER
|
||||||
ARG TURN_PASSWORD
|
ARG TURN_PASSWORD
|
||||||
@ -28,26 +29,27 @@ ARG START_ROOM_URL
|
|||||||
ARG DISABLE_NOTIFICATIONS
|
ARG DISABLE_NOTIFICATIONS
|
||||||
ARG SKIP_RENDER_OPTIMIZATIONS
|
ARG SKIP_RENDER_OPTIMIZATIONS
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
|
||||||
ENV DEBUG_MODE=$DEBUG_MODE
|
|
||||||
ENV JITSI_URL=$JITSI_URL
|
|
||||||
ENV JITSI_PRIVATE_MODE=$JITSI_PRIVATE_MODE
|
|
||||||
ENV PUSHER_URL=$PUSHER_URL
|
|
||||||
ENV ADMIN_URL=$ADMIN_URL
|
|
||||||
ENV TURN_SERVER=$TURN_SERVER
|
|
||||||
ENV TURN_USER=$TURN_USER
|
|
||||||
ENV TURN_PASSWORD=$TURN_PASSWORD
|
|
||||||
ENV MAX_PER_GROUP=$MAX_PER_GROUP
|
|
||||||
ENV MAX_USERNAME_LENGTH=$MAX_USERNAME_LENGTH
|
|
||||||
ENV START_ROOM_URL=$START_ROOM_URL
|
|
||||||
ENV DISABLE_NOTIFICATIONS=$DISABLE_NOTIFICATIONS
|
|
||||||
ENV SKIP_RENDER_OPTIMIZATIONS=$SKIP_RENDER_OPTIMIZATIONS
|
|
||||||
|
|
||||||
# Removing the iframe.html file from the final image as this adds a XSS attack.
|
# Removing the iframe.html file from the final image as this adds a XSS attack.
|
||||||
# iframe.html is only in dev mode to circumvent a limitation
|
# iframe.html is only in dev mode to circumvent a limitation
|
||||||
|
ENV NODE_ENV=production
|
||||||
RUN rm dist/iframe.html
|
RUN rm dist/iframe.html
|
||||||
RUN ./templater.sh
|
RUN ./templater.sh
|
||||||
RUN yarn run build
|
RUN \
|
||||||
|
DEBUG_MODE=$DEBUG_MODE \
|
||||||
|
JITSI_URL=$JITSI_URL \
|
||||||
|
JITSI_PRIVATE_MODE=$JITSI_PRIVATE_MODE \
|
||||||
|
PUSHER_URL=$PUSHER_URL \
|
||||||
|
ADMIN_URL=$ADMIN_URL \
|
||||||
|
STUN_SERVER=$STUN_SERVER \
|
||||||
|
TURN_SERVER=$TURN_SERVER \
|
||||||
|
TURN_USER=$TURN_USER \
|
||||||
|
TURN_PASSWORD=$TURN_PASSWORD \
|
||||||
|
MAX_PER_GROUP=$MAX_PER_GROUP \
|
||||||
|
MAX_USERNAME_LENGTH=$MAX_USERNAME_LENGTH \
|
||||||
|
START_ROOM_URL=$START_ROOM_URL \
|
||||||
|
DISABLE_NOTIFICATIONS=$DISABLE_NOTIFICATIONS \
|
||||||
|
SKIP_RENDER_OPTIMIZATIONS=$SKIP_RENDER_OPTIMIZATIONS \
|
||||||
|
yarn run build
|
||||||
|
|
||||||
# final production image
|
# final production image
|
||||||
FROM nginx:mainline-alpine
|
FROM nginx:mainline-alpine
|
||||||
|
Loading…
Reference in New Issue
Block a user