How to configure Cron job with Synology Container Manager and Reverse Proxy? #8876
Unanswered
andreastanner
asked this question in
Q&A
Replies: 1 comment 7 replies
-
Alright, so it tries to run but it can't reach the IP address. I don't know a lot about Synology, but I expect that you need to point to the internal IP plus port, so something like |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
⁸Hi there dear community
So happy that i finally found firefly!! Just amazing what you created here James, thank you very much!
Everythink works fine behind a reverse proxy where i mapped custom ports to firefly and the importer to make it reachable outside my home network. But just one thing making me headache since two weeks. I can't get cron running... i tried everythink, including asking dear Chatpgt ;).
This is my setup:
cron:
image: alpine
restart: always
container_name: firefly_iii_cron
command: sh -c "echo "* * * * * wget -qO- https://firefly.[mydomainname].com/api/v1/cron/jpPT4E6m2nCWz4P4wWaAVdeMRDBikZQi\" | crontab - && crond -f -L /dev/stdout"
networks:
- firefly_iii
The STATIC_CRON_TOKEN is a 32 long string in the .env file. like described in the documentation. I also tried to put the 32 characters directly in the line but it changed nothing.
I tried to completely disable the routers and synology firewall in case it's a blocked portnumber or so... changed nothing. I gave permissions to all users on the folders, changed nothing.
The error i get when leave the firewall on:
wget: can't connect to remote host (my public ip): Operation timed oute
,stdout,crond: user root: process already running: wget -qO- https://firefly.[mydomainname].com/api/v1/cron/jpPT4E6m2nCWz4P4wWaAVdeMRDBikZQi
The stange thing is, that when i paste the URL directly into my browswer, it works!! The transaction was made. But why is it working in the browser but not when executed via the normal docker-compose.yml?
This was the URL that worked: https://firefly/.[mydomainname].com/api/v1/cron/jpPT4E6m2nCWz4P4wWaAVdeMRDBikZQi
If anyone has an idea, it would mean me a lot, really 😊.
Beta Was this translation helpful? Give feedback.
All reactions