bonukai / MediaTracker

Self hosted media tracker for movies, tv shows, video games, books and audiobooks
MIT License
536 stars 23 forks source link

Set and change different database location than .mediatracker #538

Closed superbonaci closed 11 months ago

superbonaci commented 11 months ago

Database file, logs and assets will be saved in $HOME/.mediatracker. It's configured in './server/src/config.ts:24' That name is too generic and can be used by other programs, so this is a feature request to be able to set or change configDirectory. For example:

This is to make it compatible with forks or other random software.

IgnisDa commented 11 months ago

If you use docker, you can mount any directory from your host to this directory.

superbonaci commented 11 months ago

But that's the issue, that I don't want to use that directory. I could edit the config.ts file but then would be more difficult to fetch new git pulls.

IgnisDa commented 11 months ago

In that case, you could make a PR perhaps? Sounds easy enough to fix.

bonukai commented 11 months ago

$HOME/.mediatracker is a default directory for storing a SQLite database, logs and assets. If you use Docker, you can mount them in directories of your choice when specifying volumes.

If you do not use Docker, you can control those directories with environmental variables: DATABASE_PATH, ASSETS_PATH, LOGS_PATH