Merge branch 'release/v2.5.0' into develop
This commit is contained in:
commit
a470d14c0c
@ -45,7 +45,7 @@ map $request_uri $header_x_frame_options {
|
|||||||
map $request_uri $cache_control {
|
map $request_uri $cache_control {
|
||||||
default "no-cache, no-store, no-transform";
|
default "no-cache, no-store, no-transform";
|
||||||
~*\/(filehandler\.ashx\?action=(thumb|preview))|\/(storage\/room_logos\/root\/.*\?hash.*|storage\/userPhotos\/root\/.*\?hash.*|storage\/whitelabel\/root\/.*\?hash.*|storage\/static_partnerdata\/root\/.*\?hash.*) "must-revalidate, no-transform, immutable, max-age=31536000";
|
~*\/(filehandler\.ashx\?action=(thumb|preview))|\/(storage\/room_logos\/root\/.*\?hash.*|storage\/userPhotos\/root\/.*\?hash.*|storage\/whitelabel\/root\/.*\?hash.*|storage\/static_partnerdata\/root\/.*\?hash.*) "must-revalidate, no-transform, immutable, max-age=31536000";
|
||||||
~*\/(api\/2\.0.*|storage|login\.ashx|filehandler\.ashx|ChunkedUploader.ashx|ThirdPartyAppHandler|apisystem|sh|remoteEntry\.js|debuginfo\.md|static\/scripts\/api\.js|static\/scripts\/api\.poly\.js) "no-cache, no-store, no-transform";
|
~*\/(api\/2\.0.*|storage|login\.ashx|filehandler\.ashx|ChunkedUploader.ashx|ThirdPartyAppHandler|apisystem|sh|remoteEntry\.js|debuginfo\.md|static\/scripts\/api\.js|static\/scripts\/sdk\/.*|static\/scripts\/api\.poly\.js) "no-cache, no-store, no-transform";
|
||||||
~*\/(static\/images\/.*)|\.(js|woff|woff2|css)|(locales.*\.json) "must-revalidate, no-transform, immutable, max-age=31536000";
|
~*\/(static\/images\/.*)|\.(js|woff|woff2|css)|(locales.*\.json) "must-revalidate, no-transform, immutable, max-age=31536000";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -185,8 +185,8 @@ server {
|
|||||||
try_files /locales/$content/$basename /index.html =404;
|
try_files /locales/$content/$basename /index.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* /static/scripts/ {
|
location ~* /static/scripts/(.*)$ {
|
||||||
try_files /scripts/$basename /index.html =404;
|
try_files /scripts/$1 /index.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* /static/plugins/ {
|
location ~* /static/plugins/ {
|
||||||
|
@ -42,7 +42,8 @@ RUN apt-get -y update && \
|
|||||||
ADD https://api.github.com/repos/ONLYOFFICE/DocSpace-buildtools/git/refs/heads/${GIT_BRANCH} version.json
|
ADD https://api.github.com/repos/ONLYOFFICE/DocSpace-buildtools/git/refs/heads/${GIT_BRANCH} version.json
|
||||||
RUN git clone -b ${GIT_BRANCH} https://github.com/ONLYOFFICE/DocSpace-buildtools.git ${SRC_PATH}/buildtools && \
|
RUN git clone -b ${GIT_BRANCH} https://github.com/ONLYOFFICE/DocSpace-buildtools.git ${SRC_PATH}/buildtools && \
|
||||||
git clone --recurse-submodules -b ${GIT_BRANCH} https://github.com/ONLYOFFICE/DocSpace-Server.git ${SRC_PATH}/server && \
|
git clone --recurse-submodules -b ${GIT_BRANCH} https://github.com/ONLYOFFICE/DocSpace-Server.git ${SRC_PATH}/server && \
|
||||||
git clone -b ${GIT_BRANCH} https://github.com/ONLYOFFICE/DocSpace-Client.git ${SRC_PATH}/client
|
git clone -b ${GIT_BRANCH} https://github.com/ONLYOFFICE/DocSpace-Client.git ${SRC_PATH}/client && \
|
||||||
|
git clone -b "master" --depth 1 https://github.com/ONLYOFFICE/ASC.Web.Campaigns.git ${SRC_PATH}/campaigns
|
||||||
|
|
||||||
RUN cd ${SRC_PATH} && \
|
RUN cd ${SRC_PATH} && \
|
||||||
mkdir -p /app/onlyoffice/config/ && \
|
mkdir -p /app/onlyoffice/config/ && \
|
||||||
@ -148,6 +149,7 @@ COPY --from=base /etc/nginx/conf.d /etc/nginx/conf.d
|
|||||||
COPY --from=base /etc/nginx/includes /etc/nginx/includes
|
COPY --from=base /etc/nginx/includes /etc/nginx/includes
|
||||||
COPY --from=base ${SRC_PATH}/publish/web/client ${BUILD_PATH}/client
|
COPY --from=base ${SRC_PATH}/publish/web/client ${BUILD_PATH}/client
|
||||||
COPY --from=base ${SRC_PATH}/publish/web/public ${BUILD_PATH}/public
|
COPY --from=base ${SRC_PATH}/publish/web/public ${BUILD_PATH}/public
|
||||||
|
COPY --from=base ${SRC_PATH}/campaigns/src/campaigns ${BUILD_PATH}/public/campaigns
|
||||||
COPY --from=base ${SRC_PATH}/publish/web/management ${BUILD_PATH}/management
|
COPY --from=base ${SRC_PATH}/publish/web/management ${BUILD_PATH}/management
|
||||||
COPY --from=base ${SRC_PATH}/buildtools/install/docker/config/nginx/docker-entrypoint.d /docker-entrypoint.d
|
COPY --from=base ${SRC_PATH}/buildtools/install/docker/config/nginx/docker-entrypoint.d /docker-entrypoint.d
|
||||||
COPY --from=base ${SRC_PATH}/buildtools/install/docker/config/nginx/templates/upstream.conf.template /etc/nginx/templates/upstream.conf.template
|
COPY --from=base ${SRC_PATH}/buildtools/install/docker/config/nginx/templates/upstream.conf.template /etc/nginx/templates/upstream.conf.template
|
||||||
|
Loading…
Reference in New Issue
Block a user