В джире, в настройка нужно сменить base url на тот что нужен. Остальное за nginx-прокси
Nginx:
server {
include template/listen_https;
server_name jira.xxxxxxxxxx www.jira.xxxxxxxxxx;
set $server_url 'jira.xxxxxxxxxx';
access_log off;
error_log /var/log/nginx/jira.xxxxxxxxxx.error.log error;
include template/deny_hidden_files;
include template/cache_rules;
include template/ssl_headers;
include template/letsencryptssl;
ssl_certificate /etc/letsencrypt/live/jira.xxxxxxxxxx/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/jira.xxxxxxxxxx/privkey.pem;
location / {
gzip off;
proxy_buffers 8 32k;
proxy_buffer_size 64k;
proxy_request_buffering off;
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_set_header X-NginX-Proxy true;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass
http://atlassian-jira;
}
}
template/listen_https:
listen 443 ssl;
listen [::]:443 ssl;
conf.d/upstreams.conf:
upstream atlassian-jira {
server 192.168.122.11:8080 fail_timeout=0;
}
upstream atlassian-confluence {
server 192.168.122.11:8090 fail_timeout=0;
}
upstream atlassian-hipchat {
server 192.168.122.116:80 fail_timeout=0;
}