[bd] Attachment Store [Deleted]

Oh okay. Which addon is making this attachment look like this then? I thought this was BD Attachment Store.

Code:
https://8thos.com/data/attachment-files/2013/09/48500_nathalia.jpg

This is a normal attachment url without BD Store

Code:
https://8thos.com/attachments/image-jpg.44750/
That is this one, because you are using it to serve the attachments from the data directory, rather than the default internal_data directory.
 
  • Like
Reactions: DRE
That is this one, because you are using it to serve the attachments from the data directory, rather than the default internal_data directory.
I'm glad I paid for attachment store since it doesn't put numbers at the end of the file extension like default attachments do. With Attachment Store, my attachments can use hotlink protection. Unfortunately that cname stuff didn't work. I even tried my guide. What I ended up doing was creating a data subdomain and using the htaccess in both my site root and subdomain to get hotlink protection working.
 
Thanks for the new version :)

Is this little change maybe included in the next version?
Ooh, right... Sorry, next version :P

I'm glad I paid for attachment store since it doesn't put numbers at the end of the file extension like default attachments do. With Attachment Store, my attachments can use hotlink protection. Unfortunately that cname stuff didn't work. I even tried my guide. What I ended up doing was creating a data subdomain and using the htaccess in both my site root and subdomain to get hotlink protection working.
You guys posted too many while I were away!

You get URL like "https://8thos.com/data/attachment-files/2013/09/48500_nathalia.jpg" because the add-on uses external data directory. If you wish to use "https://8thos.com/attachments/image-jpg.44750/" then check the option "Enforce Permission".
 
So I'm thinking of purchasing this add-on, but I have a few small questions.

Does this have a CDN option?

I've given up trying to get this add-on
http://xenforo.com/community/resources/tinhte-image-attachment-optimization-cdn-support.909/

To work with the CDN option.

If I right click my attachments they tell me they are here currently
http://www.sociallyuncensored.eu/forums/attachments/newpm-gif.8184/

When when I enable the CDN: cdn.sociallyuncensored.com

It tells me it is here
http://cdn.sociallyuncensored.com/attachments/newpm-gif.8184/

Which ends up giving me a nice big red X. Because technically speaking, XenForo attachments are kept within the /data/ folder (I've kept the default path that XenForo provides and do not know how to change it, nor do I want to).

Technically, I believe they're in /data/attachments/

So my question is how well (worse or better) will this add-on work compared to the other add-on and does this add-on replace it?
 
So I'm thinking of purchasing this add-on, but I have a few small questions.

Does this have a CDN option?

I've given up trying to get this add-on
http://xenforo.com/community/resources/tinhte-image-attachment-optimization-cdn-support.909/

To work with the CDN option.

If I right click my attachments they tell me they are here currently
http://www.sociallyuncensored.eu/forums/attachments/newpm-gif.8184/

When when I enable the CDN: cdn.sociallyuncensored.com

It tells me it is here
http://cdn.sociallyuncensored.com/attachments/newpm-gif.8184/

Which ends up giving me a nice big red X. Because technically speaking, XenForo attachments are kept within the /data/ folder (I've kept the default path that XenForo provides and do not know how to change it, nor do I want to).

Technically, I believe they're in /data/attachments/

So my question is how well (worse or better) will this add-on work compared to the other add-on and does this add-on replace it?
The other add-on and this add-on supports CDN in different ways.
  • The other add-on replaces the hostname of the attachment link to use CDN hostname, this helps with parallel loading and also if configured correctly, can help reducing load to the main webserver. The other add-on also does other things other than CDN.
  • This add-on take your attachment to external_data OR Amazon server OR some other server (via ftp)
    • For external_data, it uses external url configured in your config.php so you can easily setup to serve static files via CDN (and static files are extremely fast)
    • For Amazon S3, you can use CloudFront if you want to. Or you can use other CDN, you just need to setup the subdomain correctly
    • For FTP, it's similar to external_data
It's worth noting that if you want better performance, you have to sacrifice security: with external_data and FTP mode, your attachment URL is the direct URL to the static files therefore people who have the URL can download the file without logging in, at all. There is one option to mask the direct URL with a permission enabled URL but user can still figure out the direct URL easily.
 
  • Like
Reactions: rdn
The other add-on and this add-on supports CDN in different ways.
  • The other add-on replaces the hostname of the attachment link to use CDN hostname, this helps with parallel loading and also if configured correctly, can help reducing load to the main webserver. The other add-on also does other things other than CDN.
  • This add-on take your attachment to external_data OR Amazon server OR some other server (via ftp)
    • For external_data, it uses external url configured in your config.php so you can easily setup to serve static files via CDN (and static files are extremely fast)
    • For Amazon S3, you can use CloudFront if you want to. Or you can use other CDN, you just need to setup the subdomain correctly
    • For FTP, it's similar to external_data
It's worth noting that if you want better performance, you have to sacrifice security: with external_data and FTP mode, your attachment URL is the direct URL to the static files therefore people who have the URL can download the file without logging in, at all. There is one option to mask the direct URL with a permission enabled URL but user can still figure out the direct URL easily.
Is it OK to tell you that I would like it if you would please compete against the other add-on? :p:ROFLMAO:

So the other add-on still is my best option (as it takes away database queries) and in theory, would take the load off allowing me to use cdn.sociallyuncensored.com ...... Now if only I can get that theory working. :LOL:

Thanks for your quick reply @xfrocks
 
Is it OK to tell you that I would like it if you would please compete against the other add-on? :p:ROFLMAO:

So the other add-on still is my best option (as it takes away database queries) and in theory, would take the load off allowing me to use cdn.sociallyuncensored.com ...... Now if only I can get that theory working. :LOL:

Thanks for your quick reply @xfrocks
Compete?
He is the one both develop the two addon :)
 
Is it OK to tell you that I would like it if you would please compete against the other add-on? :p:ROFLMAO:

So the other add-on still is my best option (as it takes away database queries) and in theory, would take the load off allowing me to use cdn.sociallyuncensored.com ...... Now if only I can get that theory working. :LOL:

Thanks for your quick reply @xfrocks
Well, serving static files will save even more queries FYI, with better caching support for CDN ;)
 
Well, serving static files will save even more queries FYI, with better caching support for CDN ;)
OK. Maybe I did not understand your 1st post.

Given what you know of my setup, would I be able to use cdn.sociallyuncensored.com ... ie... Something as easy as typing into a field cdn.sociallyuncensored.com and having it load as such?
 
OK. Maybe I did not understand your 1st post.

Given what you know of my setup, would I be able to use cdn.sociallyuncensored.com ... ie... Something as easy as typing into a field cdn.sociallyuncensored.com and having it load as such?
With this add-on? Nope, you will need to run the rebuilder to move the files to data directory first (by default, they are in internal_data directory).
 
Adam, I use this with cdn.net for serving 35,000 attachments (17GB).

I have them loaded from data directory, and have the CDN set up as a pull zone. I then just created a cname to map my own sub domain to the URL they give, and all the attachments are fetched via that link when you change the data directory in config.php

Drop me a PC if you want, and I can show you the configs etc.
 
Taking a look at possibly using this. S3 option is really great and something I always wanted to use. Was trying to follow along the setup from your website S3+CloudFront. The screenshot you have for Cloudfront from May appears dated now. There are additional options for CF distributions and some options you show no longer exist when Creating a distribution. Is there an updated version on setting up a CF distribution to use with this Add on? Thanks.

BTW for users unaware of advantages of S3. You have UNLIMITED storage. Never run out of disk space ever. No kidding. Also your data is ultra reliable as it is kept in 3 separate locations. How safe is the data. This is from Amazon's website:

Q: How durable is Amazon S3?

Amazon S3 is designed to provide 99.999999999% durability of objects over a given year. This durability level corresponds to an average annual expected loss of 0.000000001% of objects. For example, if you store 10,000 objects with Amazon S3, you can on average expect to incur a loss of a single object once every 10,000,000 years. In addition, Amazon S3 is designed to sustain the concurrent loss of data in two facilities.


Q: How is Amazon S3 designed to achieve 99.999999999% durability?

Amazon S3 redundantly stores your objects on multiple devices across multiple facilities in an Amazon S3 Region. The service is designed to sustain concurrent device failures by quickly detecting and repairing any lost redundancy. When processing a request to store data, the service will redundantly store your object across multiple facilities before returning SUCCESS. Amazon S3 also regularly verifies the integrity of your data using checksums.


What I've done is setup EC2 instances on AWS for my Xenforo. When my code is where I want it I snapshot/AMI it. Copy that AMI across regions for safety/DR. I use Multi-AZ RDS for database for redundancy and backup. With this Attachment Store add on you don't have to worry about storage growth on your instance ever. Greatly simplifies the environment and durability. If an instance crashes just bring back image from snapshot. DB is multi-site so replication taken care of as well as backup (up to 30 days retention). I'm always planning for disaster because it happens. This S3 Attachment store solves a big piece of it.
 
Taking a look at possibly using this. S3 option is really great and something I always wanted to use. Was trying to follow along the setup from your website S3+CloudFront. The screenshot you have for Cloudfront from May appears dated now. There are additional options for CF distributions and some options you show no longer exist when Creating a distribution. Is there an updated version on setting up a CF distribution to use with this Add on? Thanks.

BTW for users unaware of advantages of S3. You have UNLIMITED storage. Never run out of disk space ever. No kidding. Also your data is ultra reliable as it is kept in 3 separate locations. How safe is the data. This is from Amazon's website:

Q: How durable is Amazon S3?

Amazon S3 is designed to provide 99.999999999% durability of objects over a given year. This durability level corresponds to an average annual expected loss of 0.000000001% of objects. For example, if you store 10,000 objects with Amazon S3, you can on average expect to incur a loss of a single object once every 10,000,000 years. In addition, Amazon S3 is designed to sustain the concurrent loss of data in two facilities.


Q: How is Amazon S3 designed to achieve 99.999999999% durability?

Amazon S3 redundantly stores your objects on multiple devices across multiple facilities in an Amazon S3 Region. The service is designed to sustain concurrent device failures by quickly detecting and repairing any lost redundancy. When processing a request to store data, the service will redundantly store your object across multiple facilities before returning SUCCESS. Amazon S3 also regularly verifies the integrity of your data using checksums.


What I've done is setup EC2 instances on AWS for my Xenforo. When my code is where I want it I snapshot/AMI it. Copy that AMI across regions for safety/DR. I use Multi-AZ RDS for database for redundancy and backup. With this Attachment Store add on you don't have to worry about storage growth on your instance ever. Greatly simplifies the environment and durability. If an instance crashes just bring back image from snapshot. DB is multi-site so replication taken care of as well as backup (up to 30 days retention). I'm always planning for disaster because it happens. This S3 Attachment store solves a big piece of it.
Sorry for the outdated instruction, I haven't setup CloudFront again since then (still working just fine). I suspect they just moved things around and make some obscure options more visible. Should be easy to figure it out on yourself, if you need help please start a conversation with me to avoid unrelated talk in this thread :P

Regarding running XenForo with EC2, there is still one problem: avatar FYI. Also, a bunch of other add-ons put files in data or internal_data too... I tried :D
 
Back
Top Bottom