commit 06ddb94b730a4f77f2e12d5211900d249801e7c4
Author: Elan Ruusamäe <[email protected]>
Date:   Thu Oct 15 21:10:19 2015 +0300

    add HSTS sample

 eventum-lighttpd.conf | 8 +++++++-
 eventum.spec          | 2 ++
 2 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/eventum.spec b/eventum.spec
index 2a246a2..7cecd3c 100644
--- a/eventum.spec
+++ b/eventum.spec
@@ -85,6 +85,7 @@ Requires:     webserver(indexfile)
 Requires:      webserver(php) >= 4.2.0
 Suggests:      localedb
 Suggests:      php-pear-Net_LDAP2
+Suggests:      webserver(setenv)
 Conflicts:     logrotate < 3.8.0
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -738,6 +739,7 @@ done
 %{_appdir}/htdocs/setup
 
 %files doc
+%defattr(644,root,root,755)
 %doc docs/*
 %{_examplesdir}/%{name}-%{version}
 
diff --git a/eventum-lighttpd.conf b/eventum-lighttpd.conf
index 7ca717c..3746b23 100644
--- a/eventum-lighttpd.conf
+++ b/eventum-lighttpd.conf
@@ -12,6 +12,12 @@
 #      }
 #}
 
+# HTTP Strict Transport Security (HSTS) headers on https addresses
+#$SERVER["socket"] == ":443" {
+#      # HSTS (mod_setenv is required) (15768000 seconds = 6 months)
+#      setenv.add-response-header += ( "Strict-Transport-Security" => 
"max-age=15768000" )
+#}
+
 # running as alias, part 1
 alias.url += (
        "/eventum" => "/usr/share/eventum/htdocs",
@@ -19,7 +25,7 @@ alias.url += (
 
 # running as separate vhost, part 1
 #$HTTP["host"] == "eventum.example.org" {
-#    server.document-root = "/usr/share/eventum/htdocs",
+#      server.document-root = "/usr/share/eventum/htdocs",
 #}
 
 # running as alias, part 2
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/eventum.git/commitdiff/06ddb94b730a4f77f2e12d5211900d249801e7c4

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to