Skip to content

What is the environment variable for JWT secret ? #48

Description

@ludetie

Hello @Cod-e-Codes

I wanted to know what the environment variable is for the JWT secret, if it exists.
I see in the web admin panel :

Image

I think this is the default one.
How to change it ?

Activity

  1. Cod-e-Codes commented on Sep 19, 2025

    @Cod-e-Codes
    Owner

    Hey @ludetie
    The environment variable for the JWT secret is: MARCHAT_JWT_SECRET

    If not set, marchat uses the default value marchat-default-secret-change-in-production.

    To set it before starting the server:

    export MARCHAT_JWT_SECRET="$(openssl rand -base64 32)"

    After restarting the server, the admin panel and admin web UI should display the masked secret.

    Side note: the metrics tab is broken in the latest release, but building from source or waiting for the next release will fix it.

  2. added
    questionFurther information is requested
    and removed
    bugSomething isn't working
    on Sep 19, 2025
  3. ludetie commented on Sep 19, 2025

    @ludetie
    Author

    Ok @Cod-e-Codes
    Thank you !

  4. Cod-e-Codes commented on Sep 19, 2025

    @Cod-e-Codes
    Owner

    @ludetie you are very welcome!

  5. Repository owner locked and limited conversation to collaborators on Oct 6, 2025
  6. converted this issue into a discussion #52 on Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions