🔄 Rename all "twake" instances to "tdrive"
🔄 Rename all "twake" instances to "tdrive"
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
FROM node:lts AS build
|
||||
|
||||
RUN yarn global add webpack webpack-cli
|
||||
COPY frontend /twake-react/
|
||||
COPY frontend /tdrive-react/
|
||||
|
||||
WORKDIR /twake-react/
|
||||
WORKDIR /tdrive-react/
|
||||
|
||||
ENV GENERATE_SOURCEMAP=false
|
||||
RUN cp /twake-react/src/app/environment/environment.ts.dist /twake-react/src/app/environment/environment.ts && \
|
||||
RUN cp /tdrive-react/src/app/environment/environment.ts.dist /tdrive-react/src/app/environment/environment.ts && \
|
||||
yarn install --network-timeout 1000000000 && \
|
||||
# cat /twake-react/src/app/environment/environment.ts.dist && \
|
||||
# cat /twake-react/src/app/environment/environment.ts && \
|
||||
# cat /tdrive-react/src/app/environment/environment.ts.dist && \
|
||||
# cat /tdrive-react/src/app/environment/environment.ts && \
|
||||
yarn build && \
|
||||
rm -rf node_modules
|
||||
|
||||
@@ -21,7 +21,7 @@ COPY docker/tdrive-frontend/site.conf /etc/nginx/sites-available/site.template
|
||||
COPY docker/tdrive-frontend/redirect.conf /etc/nginx/sites-available/redirect
|
||||
COPY docker/tdrive-frontend/entrypoint.sh /
|
||||
COPY docker/tdrive-frontend/self-signed.sh /usr/local/bin/
|
||||
COPY --from=build /twake-react /twake-react
|
||||
COPY --from=build /tdrive-react /tdrive-react
|
||||
|
||||
RUN chmod +x /entrypoint.sh && rm /etc/nginx/conf.d/default.conf
|
||||
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
|
||||
if [ "$1" = "dev" ]
|
||||
then
|
||||
if test -f "/twake-react/src/app/environment/environment.ts"; then
|
||||
if test -f "/tdrive-react/src/app/environment/environment.ts"; then
|
||||
echo "Configuration exists, doing nothing."
|
||||
else
|
||||
cp /twake-react/src/app/environment/environment.ts.dist.dev /twake-react/src/app/environment/environment.ts
|
||||
cp /tdrive-react/src/app/environment/environment.ts.dist.dev /tdrive-react/src/app/environment/environment.ts
|
||||
fi
|
||||
else
|
||||
if test -f "/configuration/environment.ts"; then
|
||||
cp /configuration/environment.ts /twake-react/src/app/environment/environment.ts
|
||||
cp /configuration/environment.ts /tdrive-react/src/app/environment/environment.ts
|
||||
else
|
||||
cp /twake-react/src/app/environment/environment.ts.dist /twake-react/src/app/environment/environment.ts
|
||||
cp /tdrive-react/src/app/environment/environment.ts.dist /tdrive-react/src/app/environment/environment.ts
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ SSL_SUBJ_COUNTRY="${SSL_SUBJ_COUNTRY:-FR}"
|
||||
SSL_SUBJ_STATE="${SSL_SUBJ_STATE:-Hauts-de-France}"
|
||||
SSL_SUBJ_LOCALITY="${SSL_SUBJ_LOCALITY:-Paris}"
|
||||
SSL_SUBJ_ORG="${SSL_SUBJ_ORG:-Linagora}"
|
||||
SSL_SUBJ_ORG_UNIT="${SSL_SUBJ_ORG_UNIT:- Twake}"
|
||||
SSL_SUBJ_ORG_UNIT="${SSL_SUBJ_ORG_UNIT:- Tdrive}"
|
||||
SSL_SUBJ_CN="${SSL_SUBJ_CN:-localhost}"
|
||||
SSL_SUBJECT="/C=${SSL_SUBJ_COUNTRY}/ST=${SSL_SUBJ_STATE}/L=${SSL_SUBJ_LOCALITY}/O=${SSL_SUBJ_ORG}/OU=${SSL_SUBJ_ORG_UNIT}/CN=${SSL_SUBJ_CN}"
|
||||
SSL_KEY_LENGTH=${SSL_KEY_LENGTH:-2048}
|
||||
|
||||
@@ -5,12 +5,12 @@ server {
|
||||
ssl_certificate_key /etc/nginx/ssl/selfsigned.key;
|
||||
|
||||
server_name localhost;
|
||||
root /twake-core/web;
|
||||
root /tdrive-core/web;
|
||||
|
||||
add_header Strict-Transport-Security "max-age=31536000";
|
||||
|
||||
location /.well-known {
|
||||
alias /twake-react/build/.well-known/;
|
||||
alias /tdrive-react/build/.well-known/;
|
||||
|
||||
gzip on;
|
||||
gzip_disable "msie6";
|
||||
@@ -53,7 +53,7 @@ server {
|
||||
application/xml
|
||||
application/rss+xml
|
||||
image/svg+xml;
|
||||
alias /twake-react/build/;
|
||||
alias /tdrive-react/build/;
|
||||
allow all;
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user