Comments on: Using NGINX as an Atlassian JIRA Reverse Proxy https://www.justinsilver.com/technology/atlassian-jira-nginx-ssl-reverse-proxy/?utm_source=rss&utm_medium=rss&utm_campaign=atlassian-jira-nginx-ssl-reverse-proxy Technology, Travel, and Pictures Mon, 24 Jun 2019 21:19:54 +0000 hourly 1 https://wordpress.org/?v=6.0.1 By: Justin Silver https://www.justinsilver.com/technology/atlassian-jira-nginx-ssl-reverse-proxy/#comment-2643 Mon, 24 Jun 2019 21:19:54 +0000 https://www.justinsilver.com/?p=4430#comment-2643 In reply to Me.

Yep – you can actually run it on *any* high port (above 1024) as a non-root user. I wanted to use standard web ports for my setup and prefer to put everything behind a reverse proxy regardless.

]]>
By: Me https://www.justinsilver.com/technology/atlassian-jira-nginx-ssl-reverse-proxy/#comment-2642 Mon, 24 Jun 2019 21:12:49 +0000 https://www.justinsilver.com/?p=4430#comment-2642 You can run Jira without nginx under port 1080 as a normal user.

]]>
By: Vinícius Ferrão https://www.justinsilver.com/technology/atlassian-jira-nginx-ssl-reverse-proxy/#comment-2636 Wed, 22 May 2019 22:08:02 +0000 https://www.justinsilver.com/?p=4430#comment-2636 I’m having this issue:

com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://jira.versatushpc.com.br/rest/activity-stream/1.0/preferences?_=1558562492226, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.

It appears to be certificate related, since on the dashboard the following message appears: gadget.common.error.500

I’ve read something about adding the certificate to the Java Keystore, but it does not worked as expected.

]]>
By: Justin Silver https://www.justinsilver.com/technology/atlassian-jira-nginx-ssl-reverse-proxy/#comment-2623 Fri, 25 Jan 2019 14:36:04 +0000 https://www.justinsilver.com/?p=4430#comment-2623 In reply to Ryan.

The configuration needs to be done for both Nginx and JIRA. As the title implies this is a setup guide for Nginx, not Apache. Good luck!

]]>
By: Ryan https://www.justinsilver.com/technology/atlassian-jira-nginx-ssl-reverse-proxy/#comment-2622 Thu, 24 Jan 2019 16:40:01 +0000 https://www.justinsilver.com/?p=4430#comment-2622 Does the Nginx Reverse Proxy Configuration need to be a special name for the document? Where would one place a Nginx Reverse Proxy Configuration?

Does this require apache to be installed?

]]>
By: Kai Reichart https://www.justinsilver.com/technology/atlassian-jira-nginx-ssl-reverse-proxy/#comment-2609 Thu, 15 Nov 2018 19:25:49 +0000 https://www.justinsilver.com/?p=4430#comment-2609 Hi, thanks for the great article, you literally saved me hours of time!

If anybody gets Error 502 Bad Gateway and your logs say “Permission denied…”, this worked for me:

$ sudo cat /var/log/audit/audit.log | grep nginx | grep denied | audit2allow -M mynginx
$ sudo semodule -i mynginx.pp

Source: https://confluence.atlassian.com/bitbucketserverkb/13-permission-denied-while-connecting-to-upstream-while-configuring-ngnix-803374014.html

]]>
By: Justin Silver https://www.justinsilver.com/technology/atlassian-jira-nginx-ssl-reverse-proxy/#comment-2608 Tue, 13 Nov 2018 22:50:56 +0000 https://www.justinsilver.com/?p=4430#comment-2608 In reply to Fatz.

This is a good tip for proxying in general if you need to handle file uploads – the default is often pretty low for security. I’ve updated the post, thanks!

]]>
By: Fatz https://www.justinsilver.com/technology/atlassian-jira-nginx-ssl-reverse-proxy/#comment-2607 Tue, 13 Nov 2018 00:02:10 +0000 https://www.justinsilver.com/?p=4430#comment-2607 Ran into an issue with attachments being limited to the default configured value for client max body size, which likely varies depending on your distribution.

Adding the following line to the server block listening on 443 corrected the issue:

client_max_body_size 20M;

Hope this helps someone at least as much as this guide helped me.

]]>
By: Tim https://www.justinsilver.com/technology/atlassian-jira-nginx-ssl-reverse-proxy/#comment-2586 Tue, 14 Aug 2018 10:40:19 +0000 https://www.justinsilver.com/?p=4430#comment-2586 omfg this saved me man.. days of messing with this (I’m no server guy). Thank you soooo much.

]]>
By: Justin Silver https://www.justinsilver.com/technology/atlassian-jira-nginx-ssl-reverse-proxy/#comment-2544 Thu, 22 Mar 2018 22:44:47 +0000 https://www.justinsilver.com/?p=4430#comment-2544 In reply to ed.

That is the upstream jira definition at the top of the config. You could specify multiple backend servers with weighting, etc here.

]]>