title: Deploying Keycloak in production: Cannot set quarkus.http.redirect-insecure-requests without enabling SSL
body: <p>For already few hours I am struggling with getting Keycloak in production mode to work. When I try to run Keycloak in production, I get the next error:</p>
  <pre><code>keycloak    | 2022-05-25 16:32:43,094 INFO  [org.infinispan.CLUSTER] (main) ISPN000080: Disconnecting JGroups channel `ISPN`
  keycloak    | 2022-05-25 16:32:43,164 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to start server in (production) mode
  keycloak    | 2022-05-25 16:32:43,165 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Cannot set quarkus.http.redirect-insecure-requests without enabling SSL.
  keycloak    | 2022-05-25 16:32:43,165 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) For more details run the same command passing the '--verbose' option. Also you can use '--help' to see the details about the usage of the particular command.
  </code></pre>
  <p>My docker-compose file:</p>
  <pre><code>  keycloak:
  #    depends_on:
  #      - postgres_data
      container_name: keycloak
      environment:
        DB_VENDOR: postgres
        DB_ADDR: postgres
        DB_DATABASE: ${POSTGRESQL_DB}
        DB_USER: ${POSTGRESQL_USER}
        DB_PASSWORD: ${POSTGRESQL_PASS}
        KEYCLOAK_ADMIN: ${KEYCLOAK_USER}
        KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_PASSWORD}
        VIRTUAL_PORT: &quot;8080&quot;
        PROXY_ADDRESS_FORWARDING: &quot;true&quot;
        
        
      image: quay.io/keycloak/keycloak:${KEYCLOAK_VERSION}
      volumes:
        - ./theme/:/opt/keycloak/themes/metronic-theme/
        - ./keys/:/opt/keycloak/conf/keys/
      ports:
        - &quot;8082:8080&quot;
      restart: unless-stopped
      command:
        - start --proxy=passthrough --hostname=&quot;myhostname&quot; --hostname-strict-backchannel=true --https-certificate-file=/opt/keycloak/conf/keys/server.crt.pem --https-certificate-file=/opt/keycloak/conf/keys/server.key.pem
  </code></pre>
  <p>I am trying to deploy this on version 18.0.0.</p>