We're running JIRA behind nginx with https. To get it to work properly we had to edit JIRA's server.xml, duplicate the connector but append (e.g.) proxyPort="8443" and scheme="https". In addition, in JIRA's general settings you should make sure that the base URL is set to use https to avoid the SSL warnings.