Estou preocupado com o custo de hospedagem de fotos. (Configurei meu fórum em um droplet com o plano de US$ 10 da Digital Ocean — o fórum ainda não tem usuários.) Acredito que as fotos sejam armazenadas dentro do meu droplet da Digital Ocean. Isso significa que preciso ter espaço de armazenamento suficiente na Digital Ocean para acomodar a quantidade de dados que essas fotos ocupam?
Hospedar fotos dentro do fórum é importante, mas como posso estimar o custo ao longo do tempo, à medida que mais fotos são adicionadas a cada mês? Existem configurações para otimizar as fotos dos usuários?
Agradeceria muito se alguém pudesse fornecer uma explicação simples sobre hospedagem de fotos e custos. Obrigado.
Correct, you can alternatively host photos with DigitalOcean Spaces (setup guide) or Amazon on their S3 service (setup guide), which would reduce costs for more storage dramatically.
You also have settings in Discourse to reduce maximum allowed image size, which will ensure you don’t have people uploading overly large images that will take up tons of storage space.
So extending that math into DigitalOcean Space’s 250GB for $5/mo… if you had 1,000 users uploading 3 images a year at 3MB each… you’d be covered for around 27 years.
I suspect the forum will be photo heavy, but, since I have zero users at this point, I don’t know yet. Would you recommend setting up the forum to host photos on DigitalOcean Spaces or S3 before a public launch of the forum?
Also, does Discourse optimize the photos? If so, is there documentation on settings for this feature? (I apologize for what are likely very basic and obvious questions - I’m a little slow on the uptake. ) Thank you!
Yes, it would be easier to start that way rather than migrating down the road.
No, not the original files that are uploaded (which is why we recommend restricting maximum upload size in the settings). Discourse creates optimized images for displaying within posts (to cut down on loading time/bandwidth use), but a user can click on that image to view the full-size original.
If it’s absolutely necessary, we do have a script that could be run manually from the command line every now and then to trim down the size of the original images stored on the server