crowd service: fix secure sso cookies

Crowd didn't detect a secure connection before.
This commit is contained in:
Franz Pletz 2017-04-10 15:38:28 +02:00
parent a78ce1d4c6
commit f1f9020224
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -137,7 +137,7 @@ in
sed -e 's,port="8095",port="${toString cfg.listenPort}" address="${cfg.listenAddress}",' \ sed -e 's,port="8095",port="${toString cfg.listenPort}" address="${cfg.listenAddress}",' \
'' + (lib.optionalString cfg.proxy.enable '' '' + (lib.optionalString cfg.proxy.enable ''
-e 's,compression="on",compression="off" protocol="HTTP/1.1" proxyName="${cfg.proxy.name}" proxyPort="${toString cfg.proxy.port}" scheme="${cfg.proxy.scheme}" secure="${toString cfg.proxy.secure}",' \ -e 's,compression="on",compression="off" protocol="HTTP/1.1" proxyName="${cfg.proxy.name}" proxyPort="${toString cfg.proxy.port}" scheme="${cfg.proxy.scheme}" secure="${if cfg.proxy.secure then "true" else "false"}",' \
'') + '' '') + ''
${pkg}/apache-tomcat/conf/server.xml.dist > ${cfg.home}/server.xml ${pkg}/apache-tomcat/conf/server.xml.dist > ${cfg.home}/server.xml
''; '';