bnw / firefly-iii-fints-importer

Import financial transactions from you FinTS enabled bank into Firefly III.
GNU Affero General Public License v3.0
151 stars 23 forks source link

Add docker config path to check for configuration #116

Open DanielVolz opened 11 months ago

DanielVolz commented 11 months ago

This is a small fix for an error I experienced while setting up the headless mode for automation in the dockerized app.

For example, using this URL 'https://firefly-importer.local/?automate=true&config=config.json' to trigger the import resulted in the error: 'config.json' not found in the directory 'data/configurations'.

Because I'm running the app in Docker, my 'config.json'—as specified in the 'docker-compose.yml'—is saved in this path: './data/configurations:/app/configurations'.

So this pull request (PR) checks not only the local folder 'data/configurations' in case the app is run locally, but also checks the path '/app/configurations' in case the app is run as a Docker container.