<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SSL NGINX reverse proxy configuration and CSRF attack in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/ssl-nginx-reverse-proxy-configuration-and-csrf-attack/m-p/279041#M232171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I may be wrong but I think you're bypassing the CSRF protection entirely that way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To answer your question: I'm running Alfresco with an Nginx SSL offloading proxy but I did not get it working using proxy_set_header directives either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use your Tomcat for Alfresco only you may simply override the connector scheme in server.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;Connector port="8080" protocol="org.apache.coyote.http11.Http11AprProtocol"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; connectionTimeout="20000" redirectPort="8443"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; scheme="https" proxyName="your-domain.com" proxyPort="443" /&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option would be to point your nginx upstream resource to the https Tomcat connector on port 8443.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just don't know how efficient that would be … performance should be better following the first approach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Basti&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2015 13:30:00 GMT</pubDate>
    <dc:creator>basti_g</dc:creator>
    <dc:date>2015-05-20T13:30:00Z</dc:date>
    <item>
      <title>SSL NGINX reverse proxy configuration and CSRF attack</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ssl-nginx-reverse-proxy-configuration-and-csrf-attack/m-p/279040#M232170</link>
      <description>Hi,does anybody have a working configuration for nginx and/or alfresco, using https.I cannot set up nginx and/or alfresco without prompting CSRF attack in Alfresco logs (cannot log in).If i setproxy_set_header Host $host;the error is&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;EVERE: Servlet.service() for servlet [Spring Surf Dispatcher Serv</description>
      <pubDate>Tue, 19 May 2015 09:43:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ssl-nginx-reverse-proxy-configuration-and-csrf-attack/m-p/279040#M232170</guid>
      <dc:creator>dasddd</dc:creator>
      <dc:date>2015-05-19T09:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: SSL NGINX reverse proxy configuration and CSRF attack</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ssl-nginx-reverse-proxy-configuration-and-csrf-attack/m-p/279041#M232171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I may be wrong but I think you're bypassing the CSRF protection entirely that way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To answer your question: I'm running Alfresco with an Nginx SSL offloading proxy but I did not get it working using proxy_set_header directives either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use your Tomcat for Alfresco only you may simply override the connector scheme in server.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;Connector port="8080" protocol="org.apache.coyote.http11.Http11AprProtocol"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; connectionTimeout="20000" redirectPort="8443"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; scheme="https" proxyName="your-domain.com" proxyPort="443" /&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option would be to point your nginx upstream resource to the https Tomcat connector on port 8443.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just don't know how efficient that would be … performance should be better following the first approach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Basti&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 13:30:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ssl-nginx-reverse-proxy-configuration-and-csrf-attack/m-p/279041#M232171</guid>
      <dc:creator>basti_g</dc:creator>
      <dc:date>2015-05-20T13:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: SSL NGINX reverse proxy configuration and CSRF attack</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ssl-nginx-reverse-proxy-configuration-and-csrf-attack/m-p/279042#M232172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I took care of it by overriding. Attached is my share-config-custom.xml (replace my.site.com)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 23:56:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ssl-nginx-reverse-proxy-configuration-and-csrf-attack/m-p/279042#M232172</guid>
      <dc:creator>i2aml8</dc:creator>
      <dc:date>2015-05-20T23:56:54Z</dc:date>
    </item>
  </channel>
</rss>

