Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FastDL with HTTP 302 redirects doesn't works on Xash3D #1890

Open
ThatRoboticFish opened this issue Nov 21, 2024 · 5 comments
Open

FastDL with HTTP 302 redirects doesn't works on Xash3D #1890

ThatRoboticFish opened this issue Nov 21, 2024 · 5 comments

Comments

@ThatRoboticFish
Copy link

I have on my server a FastDL which redirects to another webserver to currently save resources. Apparently Xash3D doesn't like this but it works fine in GoldSrc.

2024-11-21_17-15-35.mp4
2024-11-21_17-14-16.mp4
@a1batross
Copy link
Member

Do you redirect to HTTPS server?

Xash's HTTP client doesn't support HTTPS yet but adding 301 and 302 should be very trivial.

@ThatRoboticFish
Copy link
Author

ThatRoboticFish commented Nov 22, 2024

Do you redirect to HTTPS server?

No, all of them are redirecting from HTTP

# FastDL
server {
	listen 80;
        listen [::]:80;
        listen [::]:443 ssl; # managed by Certbot
        listen 443 ssl; # managed by Certbot

	root /var/www/fastdl.igloocafe;
        server_name [.];

        access_log off;
	error_log off;

	autoindex off;

	limit_rate_after 5m;
	limit_rate 900k;

        location /hlrally {
		#try_files $uri $uri/ =404;
		rewrite ^(.*)$ http://example.com/goldsrc/hlrally/$1 redirect;
	}
        location /svencoop {
		#try_files $uri $uri/ =404;
		rewrite ^(.*)$ http://example.com/goldsrc/svencoop/$1 redirect;
	}

        ssl_certificate /etc/letsencrypt/live/[.]/cert.pem; # managed by Certbot
        ssl_certificate_key /etc/letsencrypt/live/[.]/privkey.pem; # managed by Certbot
}

Anyways, I just tried again but on my other BB server and uploading all files to my own FastDL (without redirect) and seems like it still happens. I'm not sure if this is related to goldsrc-proto.

imagen

@SNMetamorph
Copy link
Member

Do you using latest available version? Yesterday I was testing HTTP downloading and it worked flawlessly (except that issue with redirecting)

@a1batross
Copy link
Member

The issue is literally about redirect.

@SNMetamorph
Copy link
Member

Of course. What do you mean?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants