Hi,
I recently had issues configuring duplicati oauth-server to access google drive (following the instructions here: Running a self-hosted OAuth Server | Duplicati). I am using docker-compose in portainer and have set up a reverse proxy with nginx so I was not using ‘localhost’ as the hostname. I attempted to set hostname as an environment variable in docker compose, but it was ignored and ‘localhost’ was communicated as the ‘redirect uri’ to google.
In case anyone is hitting a similar issue it was necessary for me to add a specific command rather than setting environment variables to override localhost as follows:
command:
- --hostname=your url
- --listen-urls=http://+:8080
In terms of the other instructions on that page I could not set the web application as ‘internal’ (option was greyed out) so it was necessary to specify a ‘test user’.
Hope that assists anyone who is trying to do something similar.