Mastodon droplet: where to find .env.production configuration file?

I need to change my SMTP configuration, and all tutorials point to said .env.production file somewhere in Mastodon folder, but I simply can not find it.

All the best, Vedran

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

Mastodon is installed under /home/mastodon/live. To browse or change the files, login to the mastodon system user with:

sudo su - mastodon

Once you’ve switched to the mastodon user, you can access the live directory with:

cd /home/mastodon/live

And once in there, you will see the .env.production file.

Hope that this helps. Regards, Bobby

I was reffering to this article - - where that .env.production “dotenv” file is mentioned