linuxserver / docker-mastodon

GNU General Public License v3.0
78 stars 15 forks source link

Is it possible to implement params to enable translation #64

Closed igisho closed 1 year ago

igisho commented 1 year ago

Is this a new feature request?

Wanted change

Mastodon implemented this: https://github.com/mastodon/mastodon/pull/19218

Reason for change

It would be helpfull

Proposed code change

Add enviroment variable with option to enable translation and api key for service.

github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

thespad commented 1 year ago

It should just work, we pass all environment variables through to the application.

YourAutisticLife commented 1 year ago

Yes, it does work. In docker-compose.yml, for instance, you just need to set the DEEPL variables in your environment for mastodon:

    environment:
      - PUID=1000
      - PGID=1000
      [...]
      - DEEPL_API_KEY=[whatever]
      - DEPPL_PLAN=free