Managing SGS Security
If your site security is changed after installation, modifications to SGS security are performed by manual editing of the Web.config file in the installation folder.
To modify SGS security:
1. Open the Web.config file located in the application’s installation folder.
2. In the services section, remove the comment code from the service that you want to enable, and comment out the service that you want to disable (webHttpBinding_conf / webHttpBinding_conf_secured).
<services>
<service behaviorConfiguration="serviceBehavior" name="SG.UploadService.SGUpload">
<!--http mode start-->
<endpoint address="" behaviorConfiguration="webBehavior" binding="webHttpBinding" bindingConfiguration="webHttpBinding_conf" name="webHttpStream" contract="SG.UploadService.ISGUpload" />
<!--http mode end-->
<!--https mode start-->
<!--
<endpoint address="" behaviorConfiguration="webBehavior" binding="webHttpBinding" bindingConfiguration="webHttpBinding_conf_secured" name="webHttpStream" contract="SG.UploadService.ISGUpload" />
-->
<!--https mode end-->
<host>
<baseAddresses />
</host>
</service>
</services>
3. In the bindings section, remove the comment code from the binding that you want to enable, and comment out the binding that you want to disable (webHttpBinding_conf / webHttpBinding_conf_secured).
<bindings>
<webHttpBinding>
<!--http mode start-->
<binding name="webHttpBinding_conf" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed" sendTimeout="00:30:00" receiveTimeout="00:30:00">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="None" />
</binding>
<!--http mode end-->
<!--https mode start-->
<!--
<binding name="webHttpBinding_conf_secured" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed" sendTimeout="00:30:00" receiveTimeout="00:30:00">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="Transport" />
</binding>
-->
<!--https mode end-->
</webHttpBinding>
</bindings>
4. Set the required Boolean value for "httpGetEnabled" and "httpsGetEnabled":
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" />
5. On the Settings page, in the General Settings section, modify the Public URL in accordance with your security mode (i.e., http:// or https://).
For example, if enabling HTTPS, the required code changes in the Web.config file will include the following:
From:
<!--http mode--><endpoint address="mexwebhttp" binding="mexHttpBinding" contract="IMetadataExchange" />
<!--https mode--><!--<endpoint address="mexwebhttp" binding="mexHttpsBinding" contract="IMetadataExchange" />-->
To:
<!--http mode--><!--<endpoint address="mexwebhttp" binding="mexHttpBinding" contract="IMetadataExchange" />-->
<!--https mode--><endpoint address="mexwebhttp" binding="mexHttpsBinding" contract="IMetadataExchange" />