
내 laravel 앱을 dockerizing하고 있는데 로드할 때 혼합 콘텐츠를 제공할 수 없다는 오류가 발생합니다. HTML 페이지의 소스 코드를 보면 https에 있음에도 불구하고 http 구성표에서 app.js 파일이 로드됩니다. https로 리디렉션하여 내 nginx 서버에 동일한 laravel 앱을 설치하면 app.js가 https로 렌더링됩니다. 따라서 laravel에는 문제가 없습니다. Docker 내부의 nginx conf가 콘텐츠를 https로 제공하도록 하려면 어떻게 해야 하나요? 내 현재 .conf 파일은 다음과 같습니다.
server {
index index.php index.html;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www/html/public;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
gzip_static on;
}
}