0

receive mixed content alert while access filerun behind nginx

csly004 2 weeks ago 0

Hello:
I install Filerun in the container and configure it to listen port 10080, then I set a NGINX reverse proxy.

Everything goes well while I was using HTTP, but something went wrong when I switch to HTTPS. I receive a alert from Chrome and Firefox like this:

This is my NGINX configure

```

server {
listen 80;
listen 443 ssl http2;
ssl_certificate /usr/local/nginx/conf/ssl/mydomain.com.crt;
ssl_certificate_key /usr/local/nginx/conf/ssl/mydomain.com.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

ssl_prefer_server_ciphers on;
ssl_session_timeout 10m;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_buffer_size 1400;
add_header Strict-Transport-Security max-age=15768000;
ssl_stapling on;
ssl_stapling_verify on;
server_name mydomain.com;
access_log /data/wwwlogs/file.fromling.xyz_nginx.log combined;
index index.html index.htm index.php;
root /data/wwwroot/mydomain.com;
# if ($ssl_protocol = "") { return 301 https://$host$request_uri; }

include /usr/local/nginx/conf/rewrite/none.conf;
#error_page 404 /404.html;
#error_page 502 /502.html;

location / {
proxy_pass http://127.0.0.1:10080;
proxy_set_header Host $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-Host $server_name;
proxy_read_timeout 1200s;

# used for view/edit office file via Office Online Server
client_max_body_size 0;

access_log /data/wwwlogs/mydomain.com.access.log;
error_log /data/wwwlogs/mydomain.com.error.log;
}
}

```

Coud you help me?