# Flowable with custom url idm not redirecting back

**URL:** <https://forum.flowable.org/t/flowable-with-custom-url-idm-not-redirecting-back/5519>\
**Category:** Flowable Engine\
**Created:** [February 25, 2020, 12:25pm UTC](https://forum.flowable.org/t/flowable-with-custom-url-idm-not-redirecting-back/5519 "2020-02-25T12:25:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gijs735](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@Gijs735](https://forum.flowable.org/u/Gijs735)\
**Post date:** [February 25, 2020, 12:25pm UTC](https://forum.flowable.org/t/flowable-with-custom-url-idm-not-redirecting-back/5519/1 "2020-02-25T12:25:03Z")

</div>

Hey there,

I’m trying to set-up flowable on Azure in a docker container. I want to use a custom URL, for example: `flowable.example.net`.

While I got most of this working I hit a problem while trying to log in to the Modeler. When surfing to `flowable.example.com/flowable-modeler` I get correctly redirected to the IDM (with url: `https://flowable.example.net/flowable-idm/#/login?redirectOnAuthSuccess=true&redirectUrl=http:%2F%2Fflowable.example.net%2Fflowable-modeler%2F`). After logging in this page just refreshes.

After putting in the credentials, if I surf directly to `flowable.example.com/flowable-idm` I get logged in to the admin panel. When I surf directly to `flowable.example.com/flowable-modeler` it redirects me to the login page again.

My application.config looks like this:

> spring.datasource.driver-class-name=com.mysql.jdbc.Driver  
> spring.datasource.url=jdbc:mysql://database-url:3306/flowable?characterEncoding=UTF-8&useSSL=true&allowPublicKeyRetrieval=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC  
> spring.datasource.username=flowable  
> idm.app.url=[http://flowable.example.net/flowable-idm](http://flowable.example.net/flowable-idm)  
> flowable.idm.app.admin.user-id=gijs  
> flowable.common.app.idm-admin.user=gijs

I have also set the `flowable.idm.app.admin.password` and `spring.datasource.password` options in the environment.

What am I missing/doing wrong here?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Gijs735](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@Gijs735](https://forum.flowable.org/u/Gijs735)\
**Post date:** [February 25, 2020, 2:47pm UTC](https://forum.flowable.org/t/flowable-with-custom-url-idm-not-redirecting-back/5519/2 "2020-02-25T14:47:59Z")

</div>

I fixed this by also setting the following:

> idm.admin.user  
> idm.admin.password

and adding

`<Connector port="8080" protocol="HTTP/1.1" secure="true" scheme="https" proxyPort="443" />`

to /opt/tomcat/conf/server.xml
