Nginx
See Atlassian documentation on how to configure Nginx proxy server.
https://confluence.atlassian.com/display/issuesKB/Integrating+issues+with+Nginx
Example Nginx Configuration:
server {
listen 80;
server_name documentation.example.com documentation;
location / {
return 301 https://documentation.example.com$request_uri;
}
}
server {
listen 443 ssl;
# Optionally offer http2
#listen 443 ssl http2;
server_name documentation.example.com;
access_log /var/log/nginx/documentation.example.com_access.log combined;
error_log /var/log/nginx/documentation.example.com_error.log;
include conf.d/ssl.inc;
location / {
proxy_pass http://localhost:8090/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $remote_addr;
}
location /synchrony {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8091/synchrony;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Authorization "";
}
} |
ssl on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_certificate /etc/pki/tls/certs/wildcard.example.com.crt-and-intermediate.crt;
ssl_certificate_key /etc/pki/tls/certs/wildcard/wildcard.example.com.key;
ssl_session_timeout 5m; |