White browser page when using Nginx

Hi,

I´m using ChirpStack v4 as a Docker container with default settings (except the ports) on my server behind an Nginx. Calling the service via http://<IP>:8580/ is working without an issue (Image 1).

But calling the service via HTTPS leads to a white page in my browser (Image 2).

I don´t understand the message You need to enable JavaScript to run this app. in the development console because JavaScript is enabled for each website (Image 3).

Nginx is using the following settings for the service:

server {
	listen 							[::]:443 ssl;
	listen 							443 ssl;
	server_name  					name1 name2;

	fastcgi_cache					FAST_CGI_ZONE_1;
	fastcgi_cache_valid				200 60m;

	access_log 						/var/log/nginx/chirpstack_access.log;
	error_log 						/var/log/nginx/chirpstack_error.log;

	location / {
		proxy_pass 					http://localhost:8580/;
	}

	location ~ ^/api/(gateways|devices)/(\w+)/(frames|events)$ {
		limit_req 					zone=RATE_LIMIT_ZONE_1 burst=5 nodelay;
		proxy_pass 					http://localhost:8580/api/$1/$2/$3/;
		proxy_http_version 			1.1;
		proxy_set_header 			Upgrade $http_upgrade;
		proxy_set_header 			Connection "Upgrade";
		proxy_read_timeout 			86400s;
		proxy_send_timeout 			86400s;
	}
    ssl_certificate /etc/letsencrypt/live/server-kampert.de-0001/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/server-kampert.de-0001/privkey.pem; # managed by Certbot
}

I have also tested Microsoft Edge and the issue is the same. What is the reason for it and how can I fix it?

You may need to upgrade version and set header in the first proxy_pass too.

Hi,

can you explain it further, please?

@Daniel_Kampert see for example this template:

Hi,

thanks for your response. I´ve figured out that the issue was coming from a permission issue. The issue was solved after executing

sudo chown -R apache:apache /var/lib/nginx/

1 Like

This topic was automatically closed after 90 days. New replies are no longer allowed.