правка deploy

This commit is contained in:
Alexey Bannov 2019-03-04 15:24:29 +03:00
parent 68013587de
commit 953a56b549
4 changed files with 350 additions and 331 deletions

View File

@ -10,7 +10,7 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<ExcludeApp_Data>True</ExcludeApp_Data>
<MSDeployServiceURL>helpcenter.r7-office.ru</MSDeployServiceURL>
<DeployIisAppPath>helpcenter.r7-office.ru</DeployIisAppPath>
<RemoteSitePhysicalPath />
@ -22,6 +22,26 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<PrecompileBeforePublish>True</PrecompileBeforePublish>
<EnableUpdateable>True</EnableUpdateable>
<DebugSymbols>False</DebugSymbols>
<WDPMergeOption>DonotMerge</WDPMergeOption>
<WDPMergeOption>MergeAllPagesAndControlToASingleAssembly</WDPMergeOption>
<UseMerge>True</UseMerge>
<ContentAssemblyName>ASC.Merge.dll</ContentAssemblyName>
</PropertyGroup>
<Target Name="CustomCollectFiles">
<ItemGroup>
<_XMLFiles Include="Bin\*.xml" />
<_ConfigFiles Include="web.autofac.config" />
<FilesForPackagingFromProject Include="%(_XMLFiles.Identity)">
<DestinationRelativePath>Bin\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
</FilesForPackagingFromProject>
<FilesForPackagingFromProject Include="%(_ConfigFiles.Identity)">
<DestinationRelativePath>%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
</FilesForPackagingFromProject>
</ItemGroup>
</Target>
<PropertyGroup>
<CopyAllFilesToSingleFolderForPackageDependsOn>CustomCollectFiles;
;</CopyAllFilesToSingleFolderForPackageDependsOn>
<CopyAllFilesToSingleFolderForMsdeployDependsOn>CustomCollectFiles;
;</CopyAllFilesToSingleFolderForMsdeployDependsOn>
</PropertyGroup>
</Project>

View File

@ -8,8 +8,7 @@
<rewrite>
<rules>
<clear />
<rule name="pages HTTP to HTTPS" enabled="true" stopProcessing="true" xdt:Transform="Insert">
<match url="^blog" negate="true" />
<rule name="pages HTTP to HTTPS" enabled="true" stopProcessing="true" xdt:Transform="SetAttributes(enabled)" xdt:Locator="Match(name)">
<conditions>
<add input="{HTTPS}" pattern="off" />
</conditions>

View File

@ -4,7 +4,7 @@
<section name="autofac" type="ASC.Common.DependencyInjection.AutofacConfigurationSection, ASC.Common"/>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
<section name="storage" type="ASC.Data.Storage.Configuration.StorageConfigurationSection, ASC.Data.Storage"/>
<section name="dotless" type="dotless.Core.configuration.DotlessConfigurationSectionHandler, dotless.Core" />
<section name="dotless" type="dotless.Core.configuration.DotlessConfigurationSectionHandler, dotless.Core"/>
</configSections>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
@ -13,10 +13,6 @@
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed"/>
<bindingRedirect oldVersion="1.0.0.0-11.0.0.0" newVersion="11.0.0.0"/>
</dependentAssembly>
<!--<dependentAssembly>
<assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a"/>
<bindingRedirect oldVersion="1.0.0.0-2.0.8.0" newVersion="2.0.8.0"/>
</dependentAssembly>-->
</assemblyBinding>
</runtime>
<appSettings>
@ -40,6 +36,14 @@
<add key="google.search.key" value="AIzaSyCdJDyP6pf-C98Rr2aSzZW1GJbHd6iD7QY"/>
</appSettings>
<autofac configSource="web.autofac.config"/>
<!--
For a description of web.config changes for .NET 4.5 see http://go.microsoft.com/fwlink/?LinkId=235367.
The following attributes can be set on the <httpRuntime> tag.
<system.Web>
<httpRuntime targetFramework="4.5" />
</system.Web>
-->
<system.web>
<customErrors mode="Off"/>
<compilation debug="true" targetFramework="4.7.2">
@ -67,15 +71,12 @@
<add assembly="System.Data.Services.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a"/>
</assemblies>
</compilation>
<pages pageBaseType="BasePage" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
<pages pageBaseType="BasePage" controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/>
<httpHandlers>
<add verb="*" path="*.less" type="dotless.Core.LessCssHttpHandler, dotless.Core" validate="false" />
<add verb="*" path="*.less" type="dotless.Core.LessCssHttpHandler, dotless.Core" validate="false"/>
</httpHandlers>
</system.web>
<system.webServer>
@ -85,9 +86,9 @@
<clear/>
<rule name="pages HTTP to HTTPS" enabled="false" stopProcessing="true">
<conditions>
<add input="{HTTPS}" pattern="off" />
<add input="{HTTPS}" pattern="off"/>
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{URL}" appendQueryString="true" redirectType="Found" />
<action type="Redirect" url="https://{HTTP_HOST}{URL}" appendQueryString="true" redirectType="Found"/>
</rule>
<rule name="redirect-helpcenter" patternSyntax="Wildcard" stopProcessing="true">
<match url="helpcenter.aspx"/>
@ -102,132 +103,132 @@
<action type="Redirect" url="index.aspx"/>
</rule>
<rule name="redirect-AdministratorGuides" patternSyntax="Wildcard" stopProcessing="true">
<match url="AdministratorGuides.aspx" />
<action type="Redirect" url="index.aspx" />
<match url="AdministratorGuides.aspx"/>
<action type="Redirect" url="index.aspx"/>
</rule>
<rule name="redirect-GettingStarted" patternSyntax="Wildcard" stopProcessing="true">
<match url="GettingStarted.aspx" />
<action type="Redirect" url="index.aspx" />
<match url="GettingStarted.aspx"/>
<action type="Redirect" url="index.aspx"/>
</rule>
<rule name="redirect-Guides" patternSyntax="Wildcard" stopProcessing="true">
<match url="Guides.aspx" />
<action type="Redirect" url="index.aspx" />
<match url="Guides.aspx"/>
<action type="Redirect" url="index.aspx"/>
</rule>
<rule name="redirect-TipsTricks" patternSyntax="Wildcard" stopProcessing="true">
<match url="TipsTricks.aspx" />
<action type="Redirect" url="index.aspx" />
<match url="TipsTricks.aspx"/>
<action type="Redirect" url="index.aspx"/>
</rule>
<rule name="redirect-contributors-guides" patternSyntax="Wildcard" stopProcessing="true">
<match url="contributors-guides.aspx" />
<action type="Redirect" url="index.aspx" />
<match url="contributors-guides.aspx"/>
<action type="Redirect" url="index.aspx"/>
</rule>
<rule name="redirect-faq-hybrid" patternSyntax="Wildcard" stopProcessing="true">
<match url="faq/hybrid.aspx" />
<action type="Redirect" url="index.aspx" />
<match url="faq/hybrid.aspx"/>
<action type="Redirect" url="index.aspx"/>
</rule>
<rule name="redirect-faq-office-apps" patternSyntax="Wildcard" stopProcessing="true">
<match url="faq/office-apps.aspx" />
<action type="Redirect" url="index.aspx" />
<match url="faq/office-apps.aspx"/>
<action type="Redirect" url="index.aspx"/>
</rule>
<rule name="redirect-faq-partners" patternSyntax="Wildcard" stopProcessing="true">
<match url="faq/partners.aspx" />
<action type="Redirect" url="index.aspx" />
<match url="faq/partners.aspx"/>
<action type="Redirect" url="index.aspx"/>
</rule>
<rule name="redirect-faq-server" patternSyntax="Wildcard" stopProcessing="true">
<match url="faq/server.aspx" />
<action type="Redirect" url="index.aspx" />
<match url="faq/server.aspx"/>
<action type="Redirect" url="index.aspx"/>
</rule>
<rule name="redirect-Install-enterprise" patternSyntax="Wildcard" stopProcessing="true">
<match url="guides/Install-enterprise.aspx" />
<action type="Redirect" url="server/windows/community/install-enterprise.aspx" />
<match url="guides/Install-enterprise.aspx"/>
<action type="Redirect" url="server/windows/community/install-enterprise.aspx"/>
</rule>
<rule name="redirect-Install-office-apps" patternSyntax="Wildcard" stopProcessing="true">
<match url="guides/Install-office-apps.aspx" />
<action type="Redirect" url="server/windows/document/install-office-apps.aspx" />
<match url="guides/Install-office-apps.aspx"/>
<action type="Redirect" url="server/windows/document/install-office-apps.aspx"/>
</rule>
<rule name="redirect-troubleshooting-old" patternSyntax="Wildcard" stopProcessing="true">
<match url="troubleshooting.aspx" />
<action type="Redirect" url="server/windows/community/troubleshooting.aspx" />
<match url="troubleshooting.aspx"/>
<action type="Redirect" url="server/windows/community/troubleshooting.aspx"/>
</rule>
<rule name="redirect-troubleshooting-server" patternSyntax="Wildcard" stopProcessing="true">
<match url="troubleshooting/server.aspx" />
<action type="Redirect" url="server/windows/community/troubleshooting.aspx" />
<match url="troubleshooting/server.aspx"/>
<action type="Redirect" url="server/windows/community/troubleshooting.aspx"/>
</rule>
<rule name="redirect-Mobile-Applications-Projects" patternSyntax="Wildcard" stopProcessing="true">
<match url="Mobile-Applications/Projects/index.aspx" />
<action type="Redirect" url="Mobile-Applications/Documents/index.aspx" />
<match url="Mobile-Applications/Projects/index.aspx"/>
<action type="Redirect" url="Mobile-Applications/Documents/index.aspx"/>
</rule>
<rule name="redirect-Mobile-Applications-common" patternSyntax="Wildcard" stopProcessing="true">
<match url="Mobile-Applications/index.aspx" />
<action type="Redirect" url="Mobile-Applications/Documents/index.aspx" />
<match url="Mobile-Applications/index.aspx"/>
<action type="Redirect" url="Mobile-Applications/Documents/index.aspx"/>
</rule>
<rule name="redirect-pdfhowto" patternSyntax="Wildcard" stopProcessing="true">
<match url="pdfhowto.aspx" />
<action type="Redirect" url="index.aspx" />
<match url="pdfhowto.aspx"/>
<action type="Redirect" url="index.aspx"/>
</rule>
<rule name="redirect-cs-open-ports" patternSyntax="Wildcard" stopProcessing="true">
<match url="server/windows/community/open-ports.aspx" />
<action type="Redirect" url="server/docker/community/open-ports.aspx" />
<match url="server/windows/community/open-ports.aspx"/>
<action type="Redirect" url="server/docker/community/open-ports.aspx"/>
</rule>
<rule name="redirect-cs-open-ports-2" patternSyntax="Wildcard" stopProcessing="true">
<match url="server/linux/community/open-ports.aspx" />
<action type="Redirect" url="server/docker/community/open-ports.aspx" />
<match url="server/linux/community/open-ports.aspx"/>
<action type="Redirect" url="server/docker/community/open-ports.aspx"/>
</rule>
<rule name="redirect-ds-open-ports" patternSyntax="Wildcard" stopProcessing="true">
<match url="server/windows/document/open-ports.aspx" />
<action type="Redirect" url="server/docker/document/open-ports.aspx" />
<match url="server/windows/document/open-ports.aspx"/>
<action type="Redirect" url="server/docker/document/open-ports.aspx"/>
</rule>
<rule name="redirect-ds-open-ports-2" patternSyntax="Wildcard" stopProcessing="true">
<match url="server/linux/document/open-ports.aspx" />
<action type="Redirect" url="server/docker/document/open-ports.aspx" />
<match url="server/linux/document/open-ports.aspx"/>
<action type="Redirect" url="server/docker/document/open-ports.aspx"/>
</rule>
<rule name="redirect-doc-enterprise-36" patternSyntax="Wildcard" stopProcessing="true">
<match url="server/linux/document/linux-installation-enterprise-36.aspx" />
<action type="Redirect" url="server/linux/document/linux-installation-enterprise.aspx" />
<match url="server/linux/document/linux-installation-enterprise-36.aspx"/>
<action type="Redirect" url="server/linux/document/linux-installation-enterprise.aspx"/>
</rule>
<rule name="redirect-mobile-basic-operations" patternSyntax="Wildcard" stopProcessing="true">
<match url="Mobile-Applications/Documents/basic-operations.aspx" />
<action type="Redirect" url="mobile-applications/documents/document-editor/basic-operations/navigate-document.aspx" />
<match url="Mobile-Applications/Documents/basic-operations.aspx"/>
<action type="Redirect" url="mobile-applications/documents/document-editor/basic-operations/navigate-document.aspx"/>
</rule>
<rule name="redirect-mobile-page-formatting" patternSyntax="Wildcard" stopProcessing="true">
<match url="Mobile-Applications/Documents/page-formatting.aspx" />
<action type="Redirect" url="mobile-applications/documents/document-editor/page-formatting/set-page-parameters.aspx" />
<match url="Mobile-Applications/Documents/page-formatting.aspx"/>
<action type="Redirect" url="mobile-applications/documents/document-editor/page-formatting/set-page-parameters.aspx"/>
</rule>
<rule name="redirect-mobile-paragraph-formatting" patternSyntax="Wildcard" stopProcessing="true">
<match url="Mobile-Applications/Documents/paragraph-formatting.aspx" />
<action type="Redirect" url="mobile-applications/documents/document-editor/page-formatting/set-page-parameters.aspx" />
<match url="Mobile-Applications/Documents/paragraph-formatting.aspx"/>
<action type="Redirect" url="mobile-applications/documents/document-editor/page-formatting/set-page-parameters.aspx"/>
</rule>
<rule name="redirect-mobile-text-formatting" patternSyntax="Wildcard" stopProcessing="true">
<match url="Mobile-Applications/Documents/text-formatting.aspx" />
<action type="Redirect" url="mobile-applications/documents/document-editor/text-formatting/set-font-type-size-color.aspx" />
<match url="Mobile-Applications/Documents/text-formatting.aspx"/>
<action type="Redirect" url="mobile-applications/documents/document-editor/text-formatting/set-font-type-size-color.aspx"/>
</rule>
<rule name="redirect-mobile-operations-on-objects" patternSyntax="Wildcard" stopProcessing="true">
<match url="Mobile-Applications/Documents/operations-on-objects.aspx" />
<action type="Redirect" url="mobile-applications/documents/document-editor/operations-on-objects/insert-tables.aspx" />
<match url="Mobile-Applications/Documents/operations-on-objects.aspx"/>
<action type="Redirect" url="mobile-applications/documents/document-editor/operations-on-objects/insert-tables.aspx"/>
</rule>
<rule name="redirect-mobile-tools-and-settings" patternSyntax="Wildcard" stopProcessing="true">
<match url="Mobile-Applications/Documents/tools-and-settings.aspx" />
<action type="Redirect" url="mobile-applications/documents/document-editor/tools-and-settings/view-document-information.aspx" />
<match url="Mobile-Applications/Documents/tools-and-settings.aspx"/>
<action type="Redirect" url="mobile-applications/documents/document-editor/tools-and-settings/view-document-information.aspx"/>
</rule>
<rule name="redirect-document-builder" patternSyntax="Wildcard" stopProcessing="true">
<match url="*/document-builder/*" />
<action type="Redirect" url="https://api.onlyoffice.com/docbuilder/basic" />
<match url="*/document-builder/*"/>
<action type="Redirect" url="https://api.onlyoffice.com/docbuilder/basic"/>
</rule>
<rule name="redirect-sso" patternSyntax="Wildcard" stopProcessing="true">
<match url="tipstricks/sso-setup.aspx" />
<action type="Redirect" url="server/controlpanel/enterprise/sso-description.aspx" />
<match url="tipstricks/sso-setup.aspx"/>
<action type="Redirect" url="server/controlpanel/enterprise/sso-description.aspx"/>
</rule>
<rule name="redirect-exchange-migrate" patternSyntax="Wildcard" stopProcessing="true">
<match url="server/linux/enterprise/import-email-from-exchange.aspx" />
<action type="Redirect" url="server/docker/enterprise/migrate-from-exchange.aspx" />
<match url="server/linux/enterprise/import-email-from-exchange.aspx"/>
<action type="Redirect" url="server/docker/enterprise/migrate-from-exchange.aspx"/>
</rule>
<rule name="redirect-importing-files" patternSyntax="Wildcard" stopProcessing="true">
<match url="tipstricks/importing-files.aspx" />
<action type="Redirect" url="index.aspx" />
<match url="tipstricks/importing-files.aspx"/>
<action type="Redirect" url="index.aspx"/>
</rule>
<rule name="redirect-create-forms" patternSyntax="Wildcard" stopProcessing="true">
<match url="ONLYOFFICE-Editors/ONLYOFFICE-Document-Editor/UsageInstructions/InsertRichTextContentControls.aspx" />
<action type="Redirect" url="ONLYOFFICE-Editors/ONLYOFFICE-Document-Editor/index.aspx" />
<match url="ONLYOFFICE-Editors/ONLYOFFICE-Document-Editor/UsageInstructions/InsertRichTextContentControls.aspx"/>
<action type="Redirect" url="ONLYOFFICE-Editors/ONLYOFFICE-Document-Editor/index.aspx"/>
</rule>
</rules>
</rewrite>
@ -251,8 +252,8 @@
<remove name="AjaxPoster"/>
<remove name="AdminAjaxPoster"/>
<remove name="BannerPoster"/>
<remove name="less" />
<add name="less" verb="*" path="*.less" type="dotless.Core.LessCssHttpHandler, dotless.Core" />
<remove name="less"/>
<add name="less" verb="*" path="*.less" type="dotless.Core.LessCssHttpHandler, dotless.Core"/>
</handlers>
<urlCompression doStaticCompression="true" doDynamicCompression="true"/>
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
@ -278,10 +279,10 @@
<mimeMap fileExtension=".png" mimeType="image/png"/>
<remove fileExtension=".ico"/>
<mimeMap fileExtension=".ico" mimeType="image/icon"/>
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json" />
<remove fileExtension=".less" />
<mimeMap fileExtension=".less" mimeType="text/css" />
<remove fileExtension=".json"/>
<mimeMap fileExtension=".json" mimeType="application/json"/>
<remove fileExtension=".less"/>
<mimeMap fileExtension=".less" mimeType="text/css"/>
</staticContent>
<defaultDocument>
<files>
@ -303,22 +304,21 @@
<add name="common_static" type="disc" path="/" acl="Read" virtualpath="~/" appendTenantId="false"/>
</module>
</storage>
<dotless minifyCss="true" cache="true" />
<dotless minifyCss="true" cache="true"/>
<log4net>
<logger name="ASC">
<appender-ref ref="Site" />
<level value="ALL" />
<appender-ref ref="Site"/>
<level value="ALL"/>
</logger>
<appender name="Site" type="ASC.Common.Logging.SelfCleaningAppender, ASC.Common">
<file value="..\Logs\Site.log" />
<encoding value="utf-8" />
<rollingstyle value="Size" />
<maxsizerollbackups value="10" />
<maximumfilesize value="200MB" />
<staticlogfilename value="true" />
<file value="..\Logs\Site.log"/>
<encoding value="utf-8"/>
<rollingstyle value="Size"/>
<maxsizerollbackups value="10"/>
<maximumfilesize value="200MB"/>
<staticlogfilename value="true"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level [%thread] %logger - %message%newline" />
<conversionPattern value="%date %-5level [%thread] %logger - %message%newline"/>
</layout>
</appender>
</log4net>

View File

@ -19,7 +19,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.
<ProjectGuid>{17ba3e67-bcbd-4ac5-8cd9-b1bf56a1907e}</ProjectGuid>
<SourceWebPhysicalPath>$(MSBuildThisFileDirectory)</SourceWebPhysicalPath>
<SourceWebVirtualPath>/Web</SourceWebVirtualPath>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
<SourceWebProject>
</SourceWebProject>
<SourceWebMetabasePath>