Javascript resource location problem on subpanels

Hi there,

I have installed Suitecrm 7.8.10 and PHP 7.2.1 in a docker container , imported my old sugarcrm sql dump, made a quick r & r and got my data back in SuiteCRM.
The container is served via a nginx reverse proxy on https://1.2.3.4/crm .
Everything is working relatively fine except pagination on subpanels.
Let’s say I’m going to one of my account, and open the “Tickets” subpanels, the little arrows on the subpanel’s top right corner isn’t working. If I’m clicking “Next”, only thing I’m seeing is the loading pictogram.
When checking it out on Firefox debug, I’m seeing a 404: the button is linking on /index.php instead of /crm/index.php .


<button type="button" name="listViewNextButton" class="button" title="Suivant" onclick="javascript:showSubPanel('cases','/index.php?sugar_body_only=1&   ...

config.php


...
 'host_name' => '1.2.3.4',
...
 'site_url' => 'https://1.2.3.4/crm',
...

Config relevant to suite crm in nginx :


        location /crm {
            proxy_pass http://suitecrm/;
	    # Rewrite HTTPS requests from WAN to HTTP requests on LAN
            proxy_redirect http:// https://;
            sendfile off;
            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header        X-Forwarded-Proto $scheme;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
            proxy_max_temp_file_size 0;
            #this is the maximum upload size
            client_max_body_size       10m;
            client_body_buffer_size    128k;
            proxy_connect_timeout      90;
            proxy_send_timeout         90;
            proxy_read_timeout         90;
            proxy_buffer_size          4k;
            proxy_buffers              4 32k;
            proxy_busy_buffers_size    64k;
            proxy_temp_file_write_size 64k;
        }

I tried several repair and reconstruction options but none resolved my issue. How can I get the correct resource location in this inline JS ?