-
Notifications
You must be signed in to change notification settings - Fork 39
add the abbility to disable ssl #22
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4280,6 +4280,8 @@ | |
| <welcome-file>index.jsp</welcome-file> | ||
| </welcome-file-list> | ||
|
|
||
| <!-- Require HTTPS for login --> | ||
| <% if node['stash']['ssl'] == true -%> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any changes here should also be done in web.xml.erb (for completeness). |
||
| <!-- Require HTTPS for login --> | ||
| <security-constraint> | ||
| <web-resource-collection> | ||
|
|
@@ -4290,4 +4292,5 @@ | |
| <transport-guarantee>CONFIDENTIAL</transport-guarantee> | ||
| </user-data-constraint> | ||
| </security-constraint> | ||
| </web-app> | ||
| <% end -%> | ||
| </web-app> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,8 @@ | |
| CustomLog <%= node['stash']['apache2']['access_log'].empty? ? node['apache']['log_dir']+"/stash-access.log" : node['stash']['apache2']['access_log'] %> combined | ||
| ErrorLog <%= node['stash']['apache2']['error_log'].empty? ? node['apache']['log_dir']+"/stash-error.log" : node['stash']['apache2']['error_log'] %> | ||
| LogLevel warn | ||
| ProxyRequests Off | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you maybe have tabs instead of spaces? I think these changes are reasonable here.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i always use spaces. |
||
| ProxyPreserveHost On | ||
|
|
||
| <Proxy *> | ||
| Order Deny,Allow | ||
|
|
@@ -41,6 +43,8 @@ | |
| CustomLog <%= node['stash']['apache2']['ssl']['access_log'].empty? ? node['apache']['log_dir']+"/stash-ssl-access.log" : node['stash']['apache2']['ssl']['access_log'] %> combined | ||
| ErrorLog <%= node['stash']['apache2']['ssl']['error_log'].empty? ? node['apache']['log_dir']+"/stash-ssl-error.log" : node['stash']['apache2']['ssl']['error_log'] %> | ||
| LogLevel warn | ||
| ProxyRequests Off | ||
| ProxyPreserveHost On | ||
|
|
||
| <Proxy *> | ||
| Order Deny,Allow | ||
|
|
@@ -55,4 +59,4 @@ | |
| <% unless node['stash']['apache2']['ssl']['chain_file'].empty? -%> | ||
| SSLCertificateChainFile <%= node['stash']['apache2']['ssl']['chain_file'] %> | ||
| <% end -%> | ||
| </VirtualHost> | ||
| </VirtualHost> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
== trueis redundant and can be removed. Doesn't this still have redirectPort to the Tomcat HTTPS port below here in the else?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any changes here should also be done in server.xml.erb (for completeness).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind about redirectPort, that's only used for Tomcat security constraints, which would be turned off. Although don't we want apache2 to still be the check here for Apache vs non-Apache config? I think all we really need to do is mess with the security constraint in web(-tomcat7).xml.erb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think you are right will need to test this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just tested it and this option is needed.
and apache is default configured for stash for non-ssl