BlueMap

BlueMap

85.1k Downloads

Web-app does not load if live data is inaccessible

ChloeDawn opened this issue ยท 5 comments

commented

BlueMap Version:
1.3.0-forge-1.16.2

I am using:

Description:
When the internal server is down (proxy cannot resolve it), the web-app does not load at all, even though it theoretically has all of the tile data needed to render "offline". My goal with hosting it on my own web server like this is to have 100% up-time of the map during game server restarts/outages, yet this apparent dependency on live data makes this impossible.

Nginx snippet:

location /map {
	alias /srv/map;
	index index.html;

	try_files $uri $uri/ =404;

	location ~/data/ {
		gzip_static always;
	}

	location ~/live/ {
		rewrite ^/map/?(.*)$ /$1 break;
		proxy_pass http://localhost:8100;
	}

	add_header Last-Modified $date_gmt;
	add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
	if_modified_since off;
	expires off;
	etag off;
	proxy_no_cache 1;
	proxy_cache_bypass 1;
}

Current test case (will keep offline for troubleshooting): https://mc.disaster.gay/map/

commented

Update: It seems to work sometimes???

commented

Looks to me like cloudflare is messing with you there... Sending a 502 for a file in the data folder ^^
image

Edit: I should add that the web-app is definitely not dependent on the live-data. I have had a lot of cases where live was not accessible but the map is working fine ... bluemaps demo-map is an example :)

commented

Interesting... it works fine when the internal server is online, so I wonder if CloudFlare is doing some sort of compensation when it encounters a 502 from the proxy.

commented

I explicitly defined try_files $uri $uri/ =404; for the ~/live/ location and now it seems to be working. Might be placebo though and I just fixed it by side effect. I'm not super experienced with web stuff heh.

commented

I have no experience with cloudflare at all, so i can't really give any more info on that ^^'
I'll close this issue for now, since it seems to not be an issue with the web-app :)