gitlab.rb 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # -- Change GitLab settings here...
  2. external_url 'https://your-gitlab-fqdn' # <-- Replace with your GitLab FQDN
  3. # -- (Optional) Change GitLab Shell settings here...
  4. gitlab_rails['gitlab_shell_ssh_port'] = 2424
  5. # -- Change internal web service settings here...
  6. letsencrypt['enable'] = false
  7. nginx['listen_port'] = 80
  8. nginx['listen_https'] = false
  9. # --> (Optional) Enable Container Registry settings here...
  10. # registry_external_url 'https://your-registry-fqdn' # <-- Replace with your registry FQDN
  11. # gitlab_rails['registry_enabled'] = true
  12. # registry_nginx['listen_https'] = false
  13. # registry_nginx['listen_port'] = 5678 # <-- Replace with your registry port
  14. # <--
  15. # --> (Optional) Add Authentik settings here...
  16. # gitlab_rails['omniauth_auto_link_user'] = ['openid_connect']
  17. # gitlab_rails['omniauth_providers'] = [
  18. # {
  19. # name: "openid_connect", # !-- Do not change this parameter
  20. # label: "Authentik", # <-- (Optional) Change name for login button, defaults to "Openid Connect"
  21. # icon: "https://avatars.githubusercontent.com/u/82976448?s=200&v=4",
  22. # args: {
  23. # name: "openid_connect",
  24. # scope: ["openid","profile","email"],
  25. # response_type: "code",
  26. # issuer: "https://your-authentik-fqdn/application/o/your-gitlab-slug/", # <-- Replace with your Authentik FQDN and GitLab slug
  27. # discovery: true,
  28. # client_auth_method: "query",
  29. # uid_field: "email",
  30. # send_scope_to_token_endpoint: "false",
  31. # pkce: true,
  32. # client_options: {
  33. # identifier: "your-authentik-provider-client-id", # <-- Replace with your Authentik provider client ID
  34. # secret: "your-authentik-provider-client-secret", # <-- Replace with your Authentik provider client secret
  35. # redirect_uri: "https://your-authentik-fqdn/users/auth/openid_connect/callback" # <-- Replace with your Authentik FQDN
  36. # }
  37. # }
  38. # }
  39. # ]
  40. # <--
  41. # --> (Optional) Change SMTP settings here...
  42. # gitlab_rails['smtp_enable'] = true
  43. # gitlab_rails['smtp_address'] = "your-smtp-server-addr" # <-- Replace with your SMTP server address
  44. # gitlab_rails['smtp_port'] = 465
  45. # gitlab_rails['smtp_user_name'] = "your-smtp-username" # <-- Replace with your SMTP username
  46. # gitlab_rails['smtp_password'] = "your-smtp-password" # <-- Replace with your SMTP password
  47. # gitlab_rails['smtp_domain'] = "your-smtp-domain" # <-- Replace with your SMTP domain
  48. # gitlab_rails['smtp_authentication'] = "login"
  49. # gitlab_rails['smtp_ssl'] = true
  50. # gitlab_rails['smtp_force_ssl'] = true
  51. # gitlab_rails['gitlab_email_from'] = 'your-email-from-addr' # <-- Replace with your email from address
  52. # gitlab_rails['gitlab_email_reply_to'] = 'your-email-replyto-addr' # <-- Replace with your email reply-to address
  53. # <--