Questions about setting up a production version
submitted Jerry
byI've started playing with setting up a "production" version of PieFed. I have a few questions. I'm hoping someone can help.
Can I use S3 buckets for media? I use Wasabi S3 for my other Fediverse servers. Can I use them with PieFed?
Regarding the BOUNCE_ADDRESS settings in the .env file, what if I leave them all unfilled? Will the email bounces simply come back to the inbox of the sending email address? This is my preferred scenario.
The instructions have, "If BOUNCE_* is configured ...". Where is it configured? If I don't provide bounce addresses, do I need to care about this configuration?
For production, do I change MODE to MODE='production', or something else? Is it case-sensitive?
What is the SENTRY_DSN variable?
What happens if I set MAIL_ERRORS=True?
Thanks, much! I'm sure I'll have more questions.
Hi Jerry,
All good questions which reveal holes in our documentation! Quite a lot of the contents of .env are optional.
There is no S3 support yet. You might not need it though - after almost 1 year of operation piefed.social only has 14 GB of media saved. I've put a bit of thought into how to minimize disk usage with good results.
Yes if you leave BOUNCE_ADDRESS empty it'll go back to the sender instead.
It's configured in the .env file. You need an IMAP email inbox somewhere, which is outside of piefed's scope to provide. The BOUNCE_* stuff is for logging into that inbox, which you won't need to provide if not using BOUNCE_ADDRESS.
Yes, set MODE='production', case sensitive. AFAIK anything other than 'development' will cause production mode to be used.
That's used to connect to https://sentry.io for debugging purposes. You won't need that.
MAIL_ERRORS=True will cause piefed to send you an email whenever a bug occurs. I don't recommend using this unless you're doing development work. You also need to have MAIL_* all set up nicely for it to work - it needs a SMTP server to connect to.