Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Service Desk #2996

Open
thiagomdiniz opened this issue Sep 5, 2024 · 2 comments
Open

Configure Service Desk #2996

thiagomdiniz opened this issue Sep 5, 2024 · 2 comments

Comments

@thiagomdiniz
Copy link

thiagomdiniz commented Sep 5, 2024

How can we configure/enable Service Desk?

From what I understand this project does not support the GITLAB_OMNIBUS_CONFIG environment variable (I tried to configure it through this variable but it didn't work).

It was not clear how I could manually edit the configuration file to add the relevant settings.

I'm using Office 365 / Microsoft Graph.
For example:

Thanks in advance!

@thiagomdiniz
Copy link
Author

For example, could I add this Service Desk configuration manually by copying the /etc/docker-gitlab/runtime/config/gitlabhq/gitlab.yml file out of the container and mapping it as a volume?
Would this be the correct/ideal way in this case?

@thiagomdiniz
Copy link
Author

I managed to make the service desk work with Microsoft Graph.
Here are the changes I made for reference.

I copied the configuration template file out of the container:

docker compose cp gitlab:/etc/docker-gitlab/runtime/config/gitlabhq/gitlab.yml .

In the gitlab.yml local file I modified the incoming_email section like this:

  incoming_email:
    enabled: {{GITLAB_INCOMING_EMAIL_ENABLED}}

    # The email address including the `%{key}` placeholder that will be replaced to reference the item being replied to.
    # The placeholder can be omitted but if present, it must appear in the "user" part of the address (before the `@`).
    # Please be aware that a placeholder is required for the Service Desk feature to work.
    email: "email@example.com"
    address: "{{GITLAB_INCOMING_EMAIL_ADDRESS}}"

    # Service Desk - Microsoft Graph custom config
    delete_after_delivery: false
    inbox_method: 'microsoft_graph'
    inbox_options:
      tenant_id: ''
      client_id: ''
      client_secret: ''
      poll_interval: 120


    # Email account username
    # With third party providers, this is usually the full email address.
    # With self-hosted email servers, this is usually the user part of the email address.
    user: "{{IMAP_USER}}"
    # Email account password
    #password: "{{IMAP_PASS}}"

    # IMAP server host
    #host: "{{IMAP_HOST}}"
    # IMAP server port
    #port: {{IMAP_PORT}}
    # Whether the IMAP server uses SSL
    #ssl: {{IMAP_SSL}}
    # Whether the IMAP server uses StartTLS
    #start_tls: {{IMAP_STARTTLS}}

    # The mailbox where incoming mail will end up. Usually "inbox".
    #mailbox: "{{IMAP_MAILBOX}}"

    # The IDLE command timeout.
    #idle_timeout: {{IMAP_TIMEOUT}}
    # The log file path for the structured log file.
    # Since `mail_room` is run independently of Rails, an absolute path is preferred.
    # The default is 'log/mail_room_json.log' relative to the root of the Rails app.
    #
    # log_path: log/mail_room_json.log

    # Whether to expunge (permanently remove) messages from the mailbox when they are deleted after delivery
    #expunge_deleted: false

I added these environment variables:

GITLAB_INCOMING_EMAIL_ENABLED=true
GITLAB_INCOMING_EMAIL_ADDRESS=email+%{key}@example.com
IMAP_USER=email@example.com

And in docker compose I mapped the local file as a volume:

     volumes:
       ...
       - "./gitlab.yml:/etc/docker-gitlab/runtime/config/gitlabhq/gitlab.yml"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant