Raised This Month: $32 Target: $400
 8% 

Solved fastdl + cloudflare


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 02-11-2017 , 21:47   fastdl + cloudflare
Reply With Quote #1

hi say i have www.blah.com added to cloudflare
and my sv_downloadurl is set to http://www.blah.com/csgo

how would i setup cloudfare so players can still d/l from fastdl

Last edited by 8guawong; 02-12-2017 at 03:10. Reason: spelling
8guawong is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 02-11-2017 , 22:21   Re: fastdl + cloudfare
Reply With Quote #2

You proxy www.blah.com in CloudFlare so HTTP requests are redirected through their servers.

The alternative, if you don't want www.blah.com to point to CloudFlare, is to set up a subdomain such as fastdl.blah.com and proxy that.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 02-11-2017 at 22:21.
nosoop is offline
YunaJung
Junior Member
Join Date: Feb 2017
Old 02-12-2017 , 00:54   Re: fastdl + cloudfare
Reply With Quote #3

CloudFlare has Hong Kong edge where nearest place for your server.

BUT....
I run Korea server and stopped CloudFlare, because some people have bad connection at CloudFlare, they have 50KB/s speed and seems it does not correct edge selection for Asia region, It is very often.
__________________
YunaJung is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 02-12-2017 , 03:06   Re: fastdl + cloudfare
Reply With Quote #4

not sure if i got it working by luck, but after turning off cloudflare for CNAME www, clients can d/l through the fastdl url!

attached is my setting under the DNS tab
Attached Images
File Type: jpg cname.jpg (8.8 KB, 337 views)

Last edited by 8guawong; 02-12-2017 at 03:10. Reason: punctuation
8guawong is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 02-12-2017 , 05:59   Re: fastdl + cloudflare
Reply With Quote #5

CNAME's wont go through CloudFlare in their Free tier. You will need their Business or Enterprise for that ("Full oroxy" mode).

The way to do it on the Free tier is to make each individual record be an A (or AAAA for IPv6) to the IP address instead, assuming that your goal is to go over CloudFlare.

Code:
blah.com A 1.2.3.4
www.blah.com A 1.2.3.4
fastdl.blah.com A 1.2.3.4
And then make sure the cloud is orange, not grey.

You (or your hosting provider) will also need to configure the fastdl.blah.com subdomain name in your web servers configuration.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Jillchang
Senior Member
Join Date: Mar 2014
Old 02-12-2017 , 22:46   Re: fastdl + cloudfare
Reply With Quote #6

Quote:
Originally Posted by YunaJung View Post
CloudFlare has Hong Kong edge where nearest place for your server.

BUT....
I run Korea server and stopped CloudFlare, because some people have bad connection at CloudFlare, they have 50KB/s speed and seems it does not correct edge selection for Asia region, It is very often.
Anyone else have experience with cloudflare's CDN?
I used it but stopped using it since I was afraid of some players being affected by their CDN (some seem to be getting missing maps).
Jillchang is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 02-13-2017 , 10:05   Re: fastdl + cloudfare
Reply With Quote #7

Quote:
Originally Posted by Jillchang View Post
Anyone else have experience with cloudflare's CDN?
I used it but stopped using it since I was afraid of some players being affected by their CDN (some seem to be getting missing maps).
If CloudFlare tries to connect to your Origin, and your Origin is down (or somehow the connectivity between CloudFlare and your Origin is down), then people will have missing maps, missing materials/models, ... etc.

It will work like that everywhere when you run through a CDN (CloudFlare or whatever provider), and that the connectivity, e.g. between the CDN and your Origin is (tempoarily) unavailable.

I have used both CloudFlare and other CDN providers without any issues at all.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 03-21-2017 , 01:32   Re: fastdl + cloudflare
Reply With Quote #8

My experience with cloudflare:
The sv_downloadurl of my page started to fail (archives not being downloaded). So, I created a subdomain (eg manaos.sabe.com) and deactivate the protection in it (the icon in orange in the page of cloudflare, I turned into gray in the case of the subdomain of course). Risky, but It works. Hope my text helps.

Last edited by sigerman; 03-21-2017 at 01:37.
sigerman is offline
Jillchang
Senior Member
Join Date: Mar 2014
Old 03-28-2017 , 20:45   Re: fastdl + cloudflare
Reply With Quote #9

yea i dont think cloudflare cdn works for fastdownload purposes since I think they only cdn certain static file types (not including zipped files).
Jillchang is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode