Configure HTTPS in NGINX for Keycloak Using Docker Compose

Поділитися
Вставка
  • Опубліковано 1 січ 2025

КОМЕНТАРІ • 28

  • @code-215
    @code-215  Рік тому +1

    Thank you for watching this video. Please feel free to buy me a coffee www.buymeacoffee.com/Code215

  • @mister_stadler
    @mister_stadler Рік тому

    Very good channel. Keep on. Thanks a lot.

  • @stefanoguarino-l3t
    @stefanoguarino-l3t Рік тому

    nice video, but i have a problem. i used the same configuration and when i click on Administrator Console and acces tkeycloak get me a message: Cookie not found, please make... some idea?

  • @rpreviato
    @rpreviato Місяць тому

    I'm trying to configure nginx with keycloak executing direct on host machine, without docker, do have any tips how to do that?

    • @code-215
      @code-215  Місяць тому

      Your configs will have to use "localhost" instead of the Docker service name. For example in your localhost.conf for nginx you'll have to reference keycloak as localhost: instead of :

  • @maneshipocrates2264
    @maneshipocrates2264 6 місяців тому

    Why are you using start-dev if its for production? Change it to start and see if it works.

    • @code-215
      @code-215  6 місяців тому

      Nowhere in my title did I say it's for production. There's a different production video in my channel

  • @gandalfgrey91
    @gandalfgrey91 8 місяців тому

    not working for me; so frustrating. im on my mac trying to set it up on my remote linux server. i tried following your basic steps and also using haproxy. i either get content policy errors or redirect uri issues

    • @sergeyshvyrev969
      @sergeyshvyrev969 5 місяців тому

      попробуйте отдебажить hostname.

    • @gandalfgrey91
      @gandalfgrey91 5 місяців тому

      @@sergeyshvyrev969 no I can’t remember exactly the issue but it was something stupid and minor

  • @munishbhardwaj8
    @munishbhardwaj8 Рік тому

    I want to get the links or content of the files like docker compose, nginx conf etc. Thabks if anyone can help.

  • @murrayhopkins4142
    @murrayhopkins4142 Рік тому

    Thanks for this really helpful video. I learned a lot. I am attempting to setup Keycloak in a production environment behind Nginx. In that case I need to use "start" instead of "start-dev". I think I need to make some other adjustments to what you have demonstrated here. Any chance of a followup video or blog post for that use-case? Thanks again.

    • @code-215
      @code-215  Рік тому

      Simply changing "start-dev" to "start" works fine i.e starts Keycloak in prod mode and I can still access it via Nginx. Are you seeing something different on your end?

    • @keliansourdrille8505
      @keliansourdrille8505 Рік тому

      Hi, have you successfully installed in prodcution mode with https and nginx?

  • @olenamaksymiv7754
    @olenamaksymiv7754 9 місяців тому

    nice video, thank you

  • @adilmuhammad6078
    @adilmuhammad6078 Рік тому

    Thank you so much Sir

  • @vincentcifello4435
    @vincentcifello4435 Рік тому

    Thank you for this excellent tutorial. There is an error ("failed to initialize keycloak") when trying to access the account information.
    Any ideas? Other headers needed?

    • @code-215
      @code-215  Рік тому

      At what point are you seeing this error?
      Is there any more information in the Keycloak server logs?

    • @vincentcifello4435
      @vincentcifello4435 Рік тому

      @@code-215 Any attempt to access an account (eg/realms/myrealm/account). It appears to be a Keycloak CORS issue. Setting Web Origins for the account clients (eg account-console) solved it.
      Hope this helps someone.

  • @goodvandro
    @goodvandro Рік тому

    In my case its requiring the ssl for postgres too

    • @code-215
      @code-215  Рік тому

      The only way Postgres would ask you for SSL is if you explicitly tell it to using ssl=on. The docker-compose in this video doesn't do that. Check your Postgres config

    • @goodvandro
      @goodvandro Рік тому

      @@code-215 thank you for your quick response. I solve the problem. It was a syntax error. It worked for me.

  • @fxdtech
    @fxdtech Рік тому

    Why is 'start-dev' still used?

    • @code-215
      @code-215  Рік тому

      Because this is the dev setup

  • @azoozym
    @azoozym Рік тому

    Why the thumbnail looks like music video's thumbnail 😂