Images fail to load when using SSL reverse proxy

Version 2.0.0.5163
Mono Version 5.10.1.20
UNRAID 6.5
Docker 17.12.1-ce

When accessing Sonarr using SSL https://mydomain.com/sonarr the images fail to load, but all other actions work as normal. When inspecting the page with chrome using the console I find many versions of this error for all images. GET https://mydomain.com/sonarr/MediaCover/142/poster-250.jpg?lastWrite=636588465850000000 500 (Internal Server Error)

When accessing Sonar without SSL and bypassing nginx reverse proxy using http://mytempdomain.hopto.org:8987/sonarr all images load without issue.

My default file

server {
	listen 80 default_server;
	listen [::]:80 default_server;
	server_name _;
	return 301 https://$server_name$request_uri;
	}

server {
	listen 443 default_server ssl;
	server_name _;
	root /config/www;
	index index.html index.htm index.php;
	include /config/nginx/ssl.conf;
	
	client_max_body_size 0;
	
	location / {
		try_files $uri $uri/ /index.html /index.php?$args =404;
	}

	location ~ \.(png|jpg) {
		try_files $uri $uri/;
		autoindex on;
	}
	
	location /sonarr {
		include /config/nginx/proxy.conf;
                proxy_pass http://192.168.2.158:8987/sonarr;
				}
}

proxy.conf

client_max_body_size 10m;
client_body_buffer_size 128k;

proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;

send_timeout 5m;
proxy_read_timeout 240;
proxy_send_timeout 240;
proxy_connect_timeout 240;

proxy_set_header  Host $host:$server_port;
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 https;
proxy_redirect        http://  $scheme://;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_cache_bypass $cookie_session;
proxy_no_cache $cookie_session;
proxy_buffers 32 4k;

Anyone know what needs added or subtracted to allow images to load with https ?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.