Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I configure Confluence in Docker behind HA Proxy? Edited

After install, and configuring Docker environment variables, the following are working:

  • Basic UI
  • Connection to Jira for user management

However, there is a box top right on EVERY page:

--

Tomcat config is incorrect

The Tomcat server.xml has an incorrect configuration:

scheme should be 'https'
proxyName should be 'confluence.<MYDOMAIN>.com'
proxyPort should be '443'

--

There is NO WAY to set scheme via environment variables, as far as I can tell.  The other two are configured correctly, I believe.

My docker.compose's .env file contains:

ATL_JDBC_URL=jdbc:postgresql://POSTGRES_SERVER_REDACTED:5432/confluence
ATL_JDBC_USER=POSTGRES_USERNAME_REDACTED
ATL_JDBC_PASSWORD=POSTGRES_PASSWORD_REDACTED
ATL_DB_TYPE=postgresql

ATL_PROXY_NAME=confluence.<MYDOMAIN>.com
ATL_PROXY_PORT=443
ATL_TOMCAT_PORT=8090

1 answer

1 accepted

1 vote
Answer accepted

To answer my own question:

Your .env file should look like this:

ATL_JDBC_URL=jdbc:postgresql://POSTGRES_SERVER_REDACTED:5432/confluence
ATL_JDBC_USER=POSTGRES_USERNAME_REDACTED
ATL_JDBC_PASSWORD=POSTGRES_PASSWORD_REDACTED
ATL_DB_TYPE=postgresql

ATL_PROXY_NAME=confluence.<MYDOMAIN>.com
ATL_PROXY_PORT=443
ATL_TOMCAT_PORT=8090
ATL_TOMCAT_SCHEME=https
ATL_TOMCAT_SECURE=false

Note the last two lines.

Hope this helps someone!

Indeed you can also add the following env variables directly in environment section of your confluence/jira service (in your docker-compose.yml)

 

environment:
ATL_PROXY_NAME:confluence.<MYDOMAIN>.com
ATL_PROXY_PORT:443
ATL_TOMCAT_PORT:8090
ATL_TOMCAT_SCHEME: "https"
ATL_TOMCAT_SECURE: "false"

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

26 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you