Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Aug 10, 2016
1 parent cd351df commit b9faffb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
3 changes: 3 additions & 0 deletions SOURCES/ssl-wildcard.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# config to enable HSTS(HTTP Strict Transport Security) https://developer.mozilla.org/en-US/docs/Security/HTTP_Strict_Transport_Security
# to avoid ssl stripping https://en.wikipedia.org/wiki/SSL_stripping#SSL_stripping
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload" always;
5 changes: 1 addition & 4 deletions SOURCES/ssl.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# config to enable HSTS(HTTP Strict Transport Security) https://developer.mozilla.org/en-US/docs/Security/HTTP_Strict_Transport_Security
# to avoid ssl stripping https://en.wikipedia.org/wiki/SSL_stripping#SSL_stripping
add_header Strict-Transport-Security "max-age=31536000; preload";

# For wilcard certs you can use next rule
# add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload";
add_header Strict-Transport-Security "max-age=31536000; preload" always;
8 changes: 6 additions & 2 deletions webkaos-centos6.spec
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ Source20: pagespeed.conf
Source21: pagespeed-enabled.conf
Source22: pagespeed-access.pswd
Source23: ssl.conf
Source24: common.conf
Source25: bots.conf
Source24: ssl-wildcard.conf
Source25: common.conf
Source26: bots.conf

Source30: %{name}-index.html

Expand Down Expand Up @@ -331,6 +332,8 @@ install -pm 644 %{SOURCE24} \
%{buildroot}%{_sysconfdir}/%{name}/xtra/
install -pm 644 %{SOURCE25} \
%{buildroot}%{_sysconfdir}/%{name}/xtra/
install -pm 644 %{SOURCE26} \
%{buildroot}%{_sysconfdir}/%{name}/xtra/

install -dm 755 %{buildroot}%{_sysconfdir}/sysconfig

Expand Down Expand Up @@ -425,6 +428,7 @@ fi
%config(noreplace) %{_sysconfdir}/%{name}/xtra/pagespeed-enabled.conf
%config %{_sysconfdir}/%{name}/xtra/common.conf
%config %{_sysconfdir}/%{name}/xtra/ssl.conf
%config %{_sysconfdir}/%{name}/xtra/ssl-wildcard.conf
%config %{_sysconfdir}/%{name}/xtra/bots.conf

%config %{_sysconfdir}/%{name}/mime.types
Expand Down
11 changes: 9 additions & 2 deletions webkaos-centos7.spec
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ Source20: pagespeed.conf
Source21: pagespeed-enabled.conf
Source22: pagespeed-access.pswd
Source23: ssl.conf
Source24: common.conf
Source25: bots.conf
Source24: ssl-wildcard.conf
Source25: common.conf
Source26: bots.conf

Source30: %{name}-index.html

Expand Down Expand Up @@ -327,6 +328,8 @@ install -pm 644 %{SOURCE24} \
%{buildroot}%{_sysconfdir}/%{name}/xtra/
install -pm 644 %{SOURCE25} \
%{buildroot}%{_sysconfdir}/%{name}/xtra/
install -pm 644 %{SOURCE26} \
%{buildroot}%{_sysconfdir}/%{name}/xtra/

install -dm 755 %{buildroot}%{_sysconfdir}/sysconfig

Expand Down Expand Up @@ -421,6 +424,7 @@ fi
%config(noreplace) %{_sysconfdir}/%{name}/xtra/pagespeed-enabled.conf
%config %{_sysconfdir}/%{name}/xtra/common.conf
%config %{_sysconfdir}/%{name}/xtra/ssl.conf
%config %{_sysconfdir}/%{name}/xtra/ssl-wildcard.conf
%config %{_sysconfdir}/%{name}/xtra/bots.conf

%config %{_sysconfdir}/%{name}/mime.types
Expand Down Expand Up @@ -460,6 +464,9 @@ fi
###############################################################################

%changelog
* Tue Aug 09 2016 Gleb Goncharov <[email protected]> - 1.11.3-0
- Nginx updated to 1.11.3

* Wed Jul 13 2016 Anton Novojilov <[email protected]> - 1.11.2-0
- Nginx updated to 1.11.2
- PCRE updated to 8.39
Expand Down

0 comments on commit b9faffb

Please sign in to comment.