Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
636
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 15.05 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3.   <configSections>
  4.     <section name="paypal" type="PayPal.SDKConfigHandler, PayPal" />
  5.     <section name="resizer" type="ImageResizer.ResizerSection,ImageResizer" requirePermission="false" />
  6.       <sectionGroup name="UniversalAnalyticSettings">
  7.           <section name="Account" type="Analytics.Configuration, Analytics" allowLocation="true" allowDefinition="MachineToApplication" />
  8.       </sectionGroup>
  9.   </configSections>
  10.  
  11.   <resizer>
  12.     <!-- Unless you (a) use Integrated mode, or (b) map all reqeusts to ASP.NET,
  13.               you'll need to add .ashx to your image URLs: image.jpg.ashx?width=200&height=20 -->
  14.     <pipeline fakeExtensions=".ashx" />
  15.  
  16.     <plugins>
  17.       <add name="MvcRoutingShim" />
  18.       <add name="DiskCache" />
  19.       <!-- <add name="PrettyGifs" /> -->
  20.     </plugins>
  21.   </resizer>
  22.  
  23.   <!-- PayPal SDK settings -->
  24.     <paypal>
  25.         <settings>
  26.             <add name="mode" value="live" />
  27.             <add name="clientId" value="AZkYn4Lh-4-zh9AQyo7NdMm9dIFx_pqICIEYQNzoQtOwrp1EyX_EUMADEHJLgAkkIHm-c14ZUlIgWgUk" />
  28.             <add name="clientSecret" value="EClqeWttBSfw_WhJAjYqApUPNuacICx6v-xaEXsyL_PyVCgxVDOP9jUjxIYjQfbNzoik7qPmGGN_auLT" />
  29.         </settings>
  30.     </paypal>
  31.  
  32.     <UniversalAnalyticSettings>
  33.         <Account account="UA-9524291-47" property="auto" />
  34.     </UniversalAnalyticSettings>
  35.    
  36.   <connectionStrings>
  37.       <add name="ErrorLogging" connectionString="Server=.\SQLEXPRESS;Initial Catalog=db_HarryCorry;User ID=lgn_Harry14Corry4z;Password=tR9Gahek;Pooling=true;Connect Timeout=30;Max Pool Size=200;" providerName="System.Data.SqlClient" />
  38.       <add name="test" connectionString="Server=.\SQLEXPRESS;Database=test;User Id=hctest;Password=password;" providerName="System.Data.SqlClient" />
  39.       <add name="db_HarryCorryConnectionString" connectionString="Server=.\SQLEXPRESS;Initial Catalog=db_HarryCorry;User ID=lgn_Harry14Corry4z;Password=tR9Gahek;" providerName="System.Data.SqlClient"/>
  40.   </connectionStrings>
  41.   <appSettings>
  42.       <add key="ConnectionString" value="Server=.\SQLEXPRESS;Initial Catalog=db_HarryCorry;User ID=lgn_Harry14Corry4z;Password=tR9Gahek;Pooling=true;Connect Timeout=30;Max Pool Size=300;" />
  43.       <add key="aps_AttachemntSize" value="2000000" />
  44.       <add key="aps_AttachmentDatabase" value="DatabaseAttachments/" />
  45.       <!-- Numeric Based Constants-->
  46.       <add key="aps_MaxEmail" value="15" />
  47.       <add key="aps_Imagesize" value="4194304" />
  48.       <add key="aps_DocSize" value="4194304" />
  49.       <add key="aps_NoPromoted" value="10" />
  50.       <add key="aps_Author" value="PWR" />
  51.       <!-- Folders -->
  52.       <add key="aps_XML" value="xml/" />
  53.       <add key="aps_HTML" value="html/" />
  54.       <add key="aps_Includes" value="Includes/" />
  55.       <add key="aps_DocumentDatabase" value="DatabaseDocs/" />
  56.       <add key="aps_ImageDatabase" value="DatabaseImages/" />
  57.       <add key="aps_ImageThumbs" value="DatabaseThumbs/" />
  58.       <add key="pPathForUpload" value="catalog\" />
  59.       <!-- WORLD PAY SETUP-->
  60.       <add key="aps_WP_InstallationID" value="146945" />
  61.       <add key="aps_WPSS" value="75c9d58c8709a" />
  62.       <add key="aps_WPResponsePWD" value="DDEvans" />
  63.       <!-- DEV Testing Details Protx-->
  64.       <add key="aps_DevSite" value="" />
  65.       <add key="aps_DevEmail" value="paul.mcgann@thewebbureau.com" />
  66.       <add key="aps_LocalSite" value="http://localhost/" />
  67.       <add key="aps_LiveSite" value="" />
  68.       <!--Email Marketing-->
  69.      <!--  <add key="aps_EmailMarketingSterling" value="3947869a12aa61ca845055784141f0b4" />
  70.       <add key="aps_EmailMarketingEuro" value="e2bcdcfaf40d66808d0aaa7a07f3ea4c" /> -->
  71.      
  72.          
  73.       <add key="aps_EmailMarketingSterling" value="552a277fc3f043e1950c71c83b6ce9a5"/>  
  74.     <add key="aps_EmailMarketingEuro" value="5504ad92992a5b91989388a442cbe2db"/>
  75.    
  76.    
  77.       <add key="aps_EmailMarketingGeneral" value="aa8e069b8708b560ff15ab7e456b4fcf" />
  78.       <add key="aps_MailBuildAPIKey" value="dee3324e82e2a416622c9d586a8271ee" />
  79.       <!-- SMS From-->
  80.       <add key="aps_SMSFrom" value="DemoSMS" />
  81.       <!--Cute Editor-->
  82.       <add key="CuteEditorDefaultFilesPath" value="~/Admin/CuteSoft_Client/CuteEditor" />
  83.       <add key="CuteEditorTempPath" value="~/DataEditorTemp" />
  84.       <!--PayPal Setup-->
  85.       <add key="notify_url" value="https://www.harrycorry.com/PaymentGateway/PayPal/instant_payment_notification.aspx" />
  86.       <add key="return_url" value="https://www.harrycorry.com/PaymentGateway/PayPal/validate.aspx" />
  87.       <add key="cancel_url" value="https://www.harrycorry.com/PaymentGateway/PayPal/validate.aspx" />
  88.   </appSettings>
  89.   <system.webServer>
  90.    
  91.       <rewrite>
  92.          
  93.           <rules>
  94.  
  95.               <rule name="1" stopProcessing="true">
  96.                   <match url=".*" />
  97.                   <conditions>
  98.                       <add input="{PATH_INFO}" pattern="careers.php(.*)$" />
  99.                   </conditions>
  100.                   <action type="Redirect" url="/viewcareers.aspx" redirectType="Permanent" />
  101.               </rule>
  102.               <rule name="2" stopProcessing="true">
  103.                   <match url=".*" />
  104.                   <conditions>
  105.                       <add input="{PATH_INFO}" pattern="storelocator.php(.*)$" />
  106.                   </conditions>
  107.                   <action type="Redirect" url="/store-finder.aspx" redirectType="Permanent" />
  108.               </rule>
  109.               <rule name="3" stopProcessing="true">
  110.                   <match url=".*" />
  111.                   <conditions>
  112.                       <add input="{PATH_INFO}" pattern="view_store.php(.*)$" />
  113.                   </conditions>
  114.                   <action type="Redirect" url="/store-finder.aspx" appendQueryString="false" redirectType="Permanent" />
  115.               </rule>
  116.               <rule name="4" stopProcessing="true">
  117.                   <match url=".*" />
  118.                   <conditions>
  119.                       <add input="{PATH_INFO}" pattern="careers_details.php(.*)$" />
  120.                   </conditions>
  121.                   <action type="Redirect" url="/viewcareers.aspx" appendQueryString="false" redirectType="Permanent" />
  122.               </rule>
  123.               <rule name="5" stopProcessing="true">
  124.                   <match url="(.*?)/?index\.php$" ignoreCase="true" />
  125.                   <action type="Redirect" url="{R:1}" redirectType="Permanent" />
  126.               </rule>
  127.               <rule name="6" stopProcessing="true">
  128.                   <match url=".*" />
  129.                   <conditions>
  130.                       <add input="{PATH_INFO}" pattern="products.php(.*)$" />
  131.                   </conditions>
  132.                   <action type="Redirect" url="/" appendQueryString="false" redirectType="Permanent" />
  133.               </rule>
  134.               <rule name="7" stopProcessing="true">
  135.                   <match url=".*" />
  136.                   <conditions>
  137.                       <add input="{PATH_INFO}" pattern="uploaded/Image/(.*)$" />
  138.                   </conditions>
  139.                   <action type="Redirect" url="/" appendQueryString="false" redirectType="Permanent" />
  140.               </rule>
  141.               <rule name="8" stopProcessing="true">
  142.                   <match url=".*" />
  143.                   <conditions>
  144.                       <add input="{PATH_INFO}" pattern="images/hc-(.*).jpg$" />
  145.                   </conditions>
  146.                   <action type="Redirect" url="/" appendQueryString="false" redirectType="Permanent" />
  147.               </rule>
  148.            
  149.                   <rule name="Redirect HTTP to HTTPS" stopProcessing="true">
  150.                       <match url="(.*)" />
  151.                       <conditions>
  152.                           <add input="{HTTPS}" pattern="off" />
  153.                       </conditions>
  154.                       <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
  155.                   </rule>
  156.            
  157.               <!--<outboundRules>
  158.                   <rule name="Add the STS header in HTTPS responses">
  159.                       <match serverVariable="RESPONSE_Strict_Transport_Security" pattern=".*" />
  160.                       <conditions>
  161.                           <add input="{HTTPS}" pattern="on" />
  162.                       </conditions>
  163.                       <action type="Rewrite" value="max-age=31536000" />
  164.                   </rule>
  165.               </outboundRules>
  166.               <outboundRules>
  167.               <rule name="Add the STS header in HTTPS responses">
  168.                   <match serverVariable="RESPONSE_Strict_Transport_Security" pattern=".*" />
  169.                   <conditions>
  170.                       <add input="{HTTPS}" pattern="on" />
  171.                   </conditions>
  172.                   <action type="Rewrite" value="max-age=31536000" />
  173.               </rule>
  174.           </outboundRules>-->
  175.           </rules>
  176.          
  177.       </rewrite>
  178.      
  179.     <staticContent>
  180.       <clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
  181.     </staticContent>
  182.  
  183.       <!-- Ensure the powered by header is not returned -->
  184.       <httpProtocol>
  185.           <customHeaders>
  186.               <remove name="X-Powered-By" />
  187.               <add name="X-Frame-Options" value="SAMEORIGIN" />
  188.               <add name="X-XSS-Protection" value="1; mode=block" />
  189.               <add name="Referrer-Policy" value="no-referrer-when-downgrade" />
  190.               <add name="Content-Security-Policy" value="default-src https: data: 'unsafe-inline' 'unsafe-eval'" />
  191.               <add name="X-Content-Type-Options" value="nosniff" />
  192.           </customHeaders>
  193.       </httpProtocol>
  194.  
  195.       <!--caching>
  196.           <profiles>
  197.               <add extension=".ashx" policy="CacheForTimePeriod" kernelCachePolicy="CacheForTimePeriod" duration="30.00:00:00" />
  198.           </profiles>
  199.       </caching-->
  200.      
  201.     <modules>
  202.       <!--<add name="Elmah.ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler"/>-->
  203.  
  204.       <!-- This is for IIS7+ Integrated mode -->
  205.       <add name="ImageResizingModule" type="ImageResizer.InterceptModule" />
  206.  
  207.     </modules>
  208.    
  209.     <security>
  210.         <requestFiltering>
  211.             <verbs>
  212.                 <add verb="OPTIONS" allowed="false" />
  213.                 <add verb="TRACE" allowed="false" />
  214.             </verbs>
  215.         </requestFiltering>
  216.     </security>
  217.  
  218.   </system.webServer>
  219.  
  220.   <system.web>
  221.  
  222.     <httpCookies httpOnlyCookies="true" />
  223.     <httpRuntime enableVersionHeader="false" maxRequestLength="2097151" requestValidationMode="2.0" />
  224.    
  225.     <customErrors mode="RemoteOnly" redirectMode="ResponseRewrite" defaultRedirect="/Custom404Errors.aspx">
  226.       <error statusCode="404" redirect="/Custom404Errors.aspx?Code=404" />
  227.       <error statusCode="500" redirect="/Custom404Errors.aspx?Code=500" />
  228.     </customErrors>
  229.    
  230.     <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="en-GB" uiCulture="en-GB" />
  231.    
  232.     <!--<identity impersonate="true" />-->
  233.    
  234.     <pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID">
  235.       <namespaces>
  236.         <clear />
  237.         <add namespace="System" />
  238.         <add namespace="System.Collections" />
  239.         <add namespace="System.Collections.Specialized" />
  240.         <add namespace="System.Configuration" />
  241.         <add namespace="System.Text" />
  242.         <add namespace="System.Text.RegularExpressions" />
  243.         <add namespace="System.Web" />
  244.         <add namespace="System.Web.Caching" />
  245.         <add namespace="System.Web.SessionState" />
  246.         <add namespace="System.Web.Security" />
  247.         <add namespace="System.Web.Profile" />
  248.         <add namespace="System.Web.UI" />
  249.         <add namespace="System.Web.UI.WebControls" />
  250.         <add namespace="System.Web.UI.WebControls.WebParts" />
  251.         <add namespace="System.Web.UI.HtmlControls" />
  252.         <add namespace="System.Data" />
  253.         <add namespace="System.Drawing" />
  254.         <add namespace="System.IO" />
  255.         <add namespace="System.Data.SqlClient" />
  256.         <add namespace="System.Data.OleDb" />
  257.         <add namespace="System.Drawing" />
  258.       </namespaces>
  259.       <controls>
  260.         <add tagPrefix="cc1" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" />
  261.         <add tagPrefix="CE" namespace="CuteEditor" assembly="CuteEditor" />
  262.       </controls>
  263.     </pages>
  264.     <httpHandlers>
  265.       <!--<add verb="*" path="/robots.txt" type="HandlerExample.MyHttpHandler" />-->
  266.     </httpHandlers>
  267.  
  268.     <compilation debug="true" targetFramework="4.0">
  269.       <assemblies>
  270.         <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
  271.         <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
  272.         <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  273.         <add assembly="System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  274.         <add assembly="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  275.         <add assembly="System.Net, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
  276.       </assemblies>
  277.     </compilation>
  278.     <!--
  279.             The <authentication> section enables configuration
  280.             of the security authentication mode used by
  281.             ASP.NET to identify an incoming user.
  282.         -->
  283.     <authentication mode="Forms">
  284.       <forms defaultUrl="~/Admin/AdminMenu.aspx" loginUrl="~/secureLogin/AdminDefault.aspx" slidingExpiration="true" />
  285.     </authentication>
  286.     <httpModules>
  287.       <!-- UploadModule is optional , for the property Uploader.ShowProgress -->
  288.       <!--<add name="CuteEditor.UploadModule" type="CuteEditor.UploadModule,CuteEditor" />-->
  289.     </httpModules>
  290.     <sessionState mode="InProc" cookieless="UseCookies" />
  291.   </system.web>
  292.  
  293.   <system.net>
  294.     <mailSettings>
  295.       <smtp>
  296.         <network host="smtp.mailgun.org" userName="postmaster@thewebbureau.com" password="9z7yuo0-6l80" />
  297.       </smtp>
  298.     </mailSettings>
  299.   </system.net>
  300.  
  301.  
  302.   <location path="Admin">
  303.      
  304.     <system.web>
  305.                     <authorization>
  306.         <allow roles="admin,superuser" />
  307.         <deny users="*" />
  308.       </authorization>
  309.     </system.web>
  310.   </location>
  311.   <location path="Admin/thewebbureau">
  312.     <system.web>
  313.       <authorization>
  314.         <allow roles="superuser" />
  315.         <deny users="*" />
  316.       </authorization>
  317.     </system.web>
  318.   </location>
  319.   <runtime>
  320.     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  321.       <dependentAssembly>
  322.  
  323.         <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  324.         <bindingRedirect oldVersion="4.5.0.0" newVersion="6.0.0.0" />
  325.  
  326.       </dependentAssembly>
  327.  
  328.       <dependantAssembly>
  329.         <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  330.         <bindingRedirect oldVersion="2.0.0.0" newVersion="4.0.0.0" />
  331.       </dependantAssembly>
  332.     </assemblyBinding>
  333.   </runtime>
  334.   <system.webServer>
  335.     <defaultDocument>
  336.       <files>
  337.         <clear />
  338.         <add value="Default.aspx" />
  339.         <add value="Index.htm" />
  340.         <add value="Index.cfm" />
  341.         <add value="Index.shtml" />
  342.         <add value="Index.shtm" />
  343.         <add value="Index.stm" />
  344.         <add value="Index.php" />
  345.         <add value="Index.php3" />
  346.         <add value="Index.asp" />
  347.         <add value="Index.aspx" />
  348.         <add value="Default.htm" />
  349.         <add value="Default.asp" />
  350.       </files>
  351.     </defaultDocument>
  352.     <!--<httpErrors existingResponse="Replace" errorMode="Custom">
  353.       <remove statusCode="500" subStatusCode="-1" />
  354.       <remove statusCode="404" subStatusCode="-1" />
  355.       <error statusCode="404" prefixLanguageFilePath="" path="/Custom404Errors.aspx?Code=404" responseMode="ExecuteURL" />
  356.       <error statusCode="500" prefixLanguageFilePath="" path="/Custom404Errors.aspx?Code=500" responseMode="ExecuteURL" />
  357.     </httpErrors>-->
  358.     <httpErrors errorMode="Detailed"></httpErrors>
  359.     <handlers>
  360.       <add name="Robots" path="robots.txt" verb="*" type="HandlerExample.MyHttpHandler" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
  361.       <add name="GoogleProductFeed" verb="GET" path="/google-product-feed.xml" type="TWB.GoogleProductFeed" />
  362.     </handlers>
  363.   </system.webServer>
  364. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement