Comments (9)
Do you think it is possible to use something like Nginx to SSL Proxy jira?
from puppet-jira.
Using puppetlabs/apache seems to work without having to modify the jira configuration at all. So maybe its not worth adding since apache can handle it?
class { 'apache':
mpm_module => 'prefork',
default_vhost => false,
}
class { 'apache::mod::rewrite':
}
class { 'apache::mod::ssl':
}
apache::vhost { 'jira non-ssl':
servername => 'jira',
port => '80',
docroot => '/var/www',
rewrites => [
{
comment => 'redirect to https',
rewrite_cond => ['%{HTTPS} off'],
rewrite_rule => ['(.*) https://%{HTTP_HOST}:443%{REQUEST_URI}'],
},
],
}
apache::vhost { 'jira ssl':
servername => 'jira',
port => '443',
docroot => '/var/www',
default_vhost => true,
ssl => true,
ssl_cert => '/etc/ssl/certs/ssl-cert-snakeoil.pem',
ssl_key => '/etc/ssl/private/ssl-cert-snakeoil.key',
proxy_preserve_host => 'On',
proxy_pass => [
{ 'path' => '/', 'url' => 'http://localhost:8080/' },
],
require => Apache::Vhost [ 'jira non-ssl']
}
from puppet-jira.
@Conzar that's great news. I think the documentation for the module can just be updated to show your example code. I'm not a massive fan of complicating systems and SSL Termination works a lot of the time for me :)
from puppet-jira.
Well, not so good news. It seemed to work on a fresh install of Jira. But it didn't work on an existing install of jira. Essentially, it was getting a proxy timeout error. Does anything need to change on the server.xml?
Here is the main error:
JIRA is reporting that it is using the URL scheme 'http', which does not match the scheme used to run these diagnostics, 'https'. This is known to cause JIRA to construct URLs using an incorrect hostname, which will result in errors in the dashboard, among other issues.
from puppet-jira.
@Conzar this article may be of use to you
https://confluence.atlassian.com/display/STASH/Securing+Stash+behind+nginx+using+SSL
I know its for stash but they work in a similar way
from puppet-jira.
Do you think the changes required to the connector in the server.xml should be rolled into this module?
from puppet-jira.
@Conzar The scheme should be https. I will add some examples on how to do this with the puppet apache and puppet nginx modules. This is the way I would recommend setting it up.
That being said i think we could role in the required https settings into this module. I will take a look at it.
from puppet-jira.
I have switched to using reverse proxies in Apache (for port 80 to 8080 traffic). What needs to be done to use ssl? I saw you added the following:
proxy => { scheme => 'https', proxyName => 'www.example.com', proxyPort => '443', },
What is proxy, is that specific to this module?
from puppet-jira.
No proxy is specific to tomcat, Setting the tomcat connector:
<Connector port="8081" ...
proxyName="www.mycompany.com"
proxyPort="443"
scheme="https"/>
will cause servlets inside this web application to think that all proxied requests were directed to www.mycompany.com on port 443 using https. More detail here: http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html#Attributes
AFAIK its required if you are doing ssl offloading with reverse proxying via apache/nginx.
from puppet-jira.
Related Issues (20)
- Bump puppetlabs-stdlib dependency HOT 1
- Add optional MySQL connection string options HOT 1
- Jira_facts deprecation warnings HOT 1
- jira::java_opts defined as YAML multiline block string generates incorrect JAVA_OPTS string in setenv.sh HOT 2
- server.xml - StuckThreadDetectionValve introduced in 7.6.12
- Drop Ubuntu 16.04, Add 18.04 instead
- 5.0.0 release summary
- Test with Puppet 7 and fresher OSes
- JIRA will not start if the installation directory mode is missing o+x HOT 2
- connection-settings parameter in dbconfig.xml template should be connection-properties instead
- Manage web.xml Config HOT 1
- Release a new Jira version
- Add manage_homedir support
- scheme written twice in server.xml when using tomcat_native_ssl and supplying proxy settings
- cluster node id is too long using fqdn
- AlmaLinux support
- Release v5.2.0 HOT 2
- cluster.properties.epp - soon to be deprecated code by Puppet 8 HOT 1
- JVM_OPENS not set for JIRA Java 17 support
- Optional[Integer[-1]] $pool_max_wait breaks with latest puppet agent (7.29 or 8.5) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-jira.