Add config files for deploy.

This commit is contained in:
s-mn 2019-12-11 16:24:11 +03:00
parent 269d9fe54b
commit 6977295304
4 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>
</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<MSDeployServiceURL>helpcenter.onlyoffice.com</MSDeployServiceURL>
<DeployIisAppPath>helpcenter.teamlab.com</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>Administrator</UserName>
<_SavePWD>False</_SavePWD>
<AspnetCompileMergeIntermediateOutputPath>../temp</AspnetCompileMergeIntermediateOutputPath>
<_PackageTempDir>../temp</_PackageTempDir>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>
</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<MSDeployServiceURL>helpcenter.onlyoffice.com</MSDeployServiceURL>
<DeployIisAppPath>test-helpcenter.teamlab.com</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>Administrator</UserName>
<_SavePWD>False</_SavePWD>
<AspnetCompileMergeIntermediateOutputPath>../temp</AspnetCompileMergeIntermediateOutputPath>
<_PackageTempDir>../temp</_PackageTempDir>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<appSettings>
<add key="core.notify.postman" value="service" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="web.doc.teamlab" value="https://helpcenter.onlyoffice.com" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
</appSettings>
<system.webServer>
<rewrite>
<rules>
<clear />
<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>
<action type="Redirect" url="https://{HTTP_HOST}{URL}" appendQueryString="true" redirectType="Found" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<appSettings>
<add key="core.notify.postman" value="service" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="web.doc.teamlab" value="https://test-helpcenter.onlyoffice.com" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
</appSettings>
<system.webServer>
<rewrite>
<rules>
<clear />
<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>
<action type="Redirect" url="https://{HTTP_HOST}{URL}" appendQueryString="true" redirectType="Found" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>