1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00
This commit is contained in:
Kay0u 2022-03-23 14:16:50 +01:00
parent ce6cb7c946
commit 254e55fc5f
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
3 changed files with 56 additions and 18 deletions

View file

@ -304,6 +304,14 @@ external_url '__GENERATED_EXTERNAL_URL__'
# 'poll_interval': 60 # Optional # 'poll_interval': 60 # Optional
# } # }
#### How incoming emails are delivered to Rails process. Accept either sidekiq
#### or webhook. The default config is sidekiq.
# gitlab_rails['incoming_email_delivery_method'] = "sidekiq"
#### Token to authenticate webhook requests. The token must be exactly 32 bytes,
#### encoded with base64
# gitlab_rails['incoming_email_auth_token'] = nil
####! The format of mail_room crash logs ####! The format of mail_room crash logs
# mailroom['exit_log_format'] = "plain" # mailroom['exit_log_format'] = "plain"
@ -668,7 +676,7 @@ EOS
### For setting up different data storing directory ### For setting up different data storing directory
###! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#storing-git-data-in-an-alternative-directory ###! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#store-git-data-in-an-alternative-directory
###! **If you want to use a single non-default directory to store git data use a ###! **If you want to use a single non-default directory to store git data use a
###! path that doesn't contain symlinks.** ###! path that doesn't contain symlinks.**
# git_data_dirs({ # git_data_dirs({
@ -701,6 +709,7 @@ gitlab_rails['gitlab_shell_ssh_port'] = __SSH_PORT__
# gitlab_rails['extra_google_tag_manager_id'] = '_your_tracking_id' # gitlab_rails['extra_google_tag_manager_id'] = '_your_tracking_id'
# gitlab_rails['extra_one_trust_id'] = '_your_one_trust_id' # gitlab_rails['extra_one_trust_id'] = '_your_one_trust_id'
# gitlab_rails['extra_google_tag_manager_nonce_id'] = '_your_google_tag_manager_id' # gitlab_rails['extra_google_tag_manager_nonce_id'] = '_your_google_tag_manager_id'
# gitlab_rails['extra_bizible'] = false
# gitlab_rails['extra_matomo_url'] = '_your_matomo_url' # gitlab_rails['extra_matomo_url'] = '_your_matomo_url'
# gitlab_rails['extra_matomo_site_id'] = '_your_matomo_site_id' # gitlab_rails['extra_matomo_site_id'] = '_your_matomo_site_id'
# gitlab_rails['extra_matomo_disable_cookies'] = false # gitlab_rails['extra_matomo_disable_cookies'] = false
@ -1023,8 +1032,8 @@ gitlab_rails['gitlab_shell_ssh_port'] = __SSH_PORT__
################################################################################ ################################################################################
## GitLab Puma ## GitLab Puma
##! Tweak puma settings. You should only use Unicorn or Puma, not both. ##! Tweak puma settings.
##! Docs: https://docs.gitlab.com/omnibus/settings/puma.html ##! Docs: https://docs.gitlab.com/ee/administration/operations/puma.html
################################################################################ ################################################################################
# puma['enable'] = true # puma['enable'] = true
@ -1497,6 +1506,7 @@ nginx['listen_https'] = false
# } # }
# nginx['proxy_cache_path'] = 'proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2' # nginx['proxy_cache_path'] = 'proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2'
# nginx['proxy_cache'] = 'gitlab' # nginx['proxy_cache'] = 'gitlab'
# nginx['proxy_custom_buffer_size'] = '4k'
# nginx['http2_enabled'] = true # nginx['http2_enabled'] = true
# nginx['real_ip_trusted_addresses'] = [] # nginx['real_ip_trusted_addresses'] = []
# nginx['real_ip_header'] = nil # nginx['real_ip_header'] = nil
@ -1599,7 +1609,7 @@ nginx['listen_https'] = false
##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#disable-user-and-group-account-management ##! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#disable-user-and-group-account-management
################################################################################ ################################################################################
# manage_accounts['enable'] = false # manage_accounts['enable'] = true
################################################################################ ################################################################################
## Storage directories ## Storage directories
@ -1723,6 +1733,10 @@ nginx['listen_https'] = false
# gitlab_pages['auth_secret'] = nil # Generated if not present # gitlab_pages['auth_secret'] = nil # Generated if not present
# gitlab_pages['auth_scope'] = nil # Defaults to api, can be changed to read_api to increase security # gitlab_pages['auth_scope'] = nil # Defaults to api, can be changed to read_api to increase security
##! GitLab Pages Server Shutdown Timeout
##! Duration ("30s" for 30 seconds)
# gitlab_pages['server_shutdown_timeout'] = "30s"
##! GitLab API HTTP client connection timeout ##! GitLab API HTTP client connection timeout
# gitlab_pages['gitlab_client_http_timeout'] = "10s" # gitlab_pages['gitlab_client_http_timeout'] = "10s"
@ -1773,15 +1787,26 @@ nginx['listen_https'] = false
##! enable `FF_ENABLE_RATE_LIMITER=true` environment variable to ##! enable `FF_ENABLE_RATE_LIMITER=true` environment variable to
##! reject requests. ##! reject requests.
##! Rate limit per source IP in number of requests per second, 0 means is disabled ##! Rate limits as described in https://docs.gitlab.com/ee/administration/pages/#rate-limits
##! Rate limit HTTP requests per second from a single IP, 0 means is disabled
# gitlab_pages['rate_limit_source_ip'] = 50.0 # gitlab_pages['rate_limit_source_ip'] = 50.0
##! Rate limit per source IP maximum burst allowed per second ##! Rate limit HTTP requests from a single IP, maximum burst allowed per second
# gitlab_pages['rate_limit_source_ip_burst'] = 600 # gitlab_pages['rate_limit_source_ip_burst'] = 600
##! Rate limit per domain name in number of requests per second, 0 means is disabled ##! Rate limit HTTP requests per second to a single domain, 0 means is disabled
# gitlab_pages['rate_limit_domain'] = 0 # gitlab_pages['rate_limit_domain'] = 0
##! Rate limit per domain name maximum burst allowed per second ##! Rate limit HTTP requests to a single domain, maximum burst allowed per second
# gitlab_pages['rate_limit_domain_burst'] = 10000 # gitlab_pages['rate_limit_domain_burst'] = 10000
##! Rate limit new TLS connections per second from a single IP, 0 means is disabled
# gitlab_pages['rate_limit_tls_source_ip'] = 50.0
##! Rate limit new TLS connections from a single IP, maximum burst allowed per second
# gitlab_pages['rate_limit_tls_source_ip_burst'] = 600
##!Rate limit new TLS connections per second from to a single domain, 0 means is disabled
# gitlab_pages['rate_limit_tls_domain'] = 0
##! Rate limit new TLS connections to a single domain, maximum burst allowed per second
# gitlab_pages['rate_limit_tls_domain_burst'] = 10000
# gitlab_pages['env_directory'] = "/opt/gitlab/etc/gitlab-pages/env" # gitlab_pages['env_directory'] = "/opt/gitlab/etc/gitlab-pages/env"
# gitlab_pages['env'] = { # gitlab_pages['env'] = {
# 'SSL_CERT_DIR' => "#{node['package']['install-dir']}/embedded/ssl/certs/" # 'SSL_CERT_DIR' => "#{node['package']['install-dir']}/embedded/ssl/certs/"
@ -1860,6 +1885,9 @@ nginx['listen_https'] = false
##! Metrics configuration for GitLab KAS ##! Metrics configuration for GitLab KAS
# gitlab_kas['metrics_usage_reporting_period'] = 60 # gitlab_kas['metrics_usage_reporting_period'] = 60
##! Log configuration for GitLab KAS
# gitlab_kas['log_level'] = 'info'
##! Environment variables for GitLab KAS ##! Environment variables for GitLab KAS
# gitlab_kas['env'] = { # gitlab_kas['env'] = {
# 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/", # 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/",
@ -2049,7 +2077,7 @@ nginx['listen_https'] = false
###! **Only needed if Prometheus and Rails are not on the same server.** ###! **Only needed if Prometheus and Rails are not on the same server.**
### For example, in a multi-node architecture, Prometheus will be installed on the monitoring node, while Rails will be on the Rails node. ### For example, in a multi-node architecture, Prometheus will be installed on the monitoring node, while Rails will be on the Rails node.
### https://docs.gitlab.com/ee/administration/monitoring/prometheus/index.html#using-an-external-prometheus-server ### https://docs.gitlab.com/ee/administration/monitoring/prometheus/index.html#using-an-external-prometheus-server
### This value should be the address at which Prometheus is available to GitLab Rails(Puma/Unicorn, Sidekiq) node. ### This value should be the address at which Prometheus is available to a GitLab Rails(Puma, Sidekiq) node.
################################################################################ ################################################################################
# gitlab_rails['prometheus_address'] = 'your.prom:9090' # gitlab_rails['prometheus_address'] = 'your.prom:9090'
@ -2311,6 +2339,7 @@ nginx['listen_https'] = false
# gitaly['graceful_restart_timeout'] = '1m' # Grace time for a gitaly process to finish ongoing requests # gitaly['graceful_restart_timeout'] = '1m' # Grace time for a gitaly process to finish ongoing requests
# gitaly['git_catfile_cache_size'] = 100 # Number of 'git cat-file' processes kept around for re-use # gitaly['git_catfile_cache_size'] = 100 # Number of 'git cat-file' processes kept around for re-use
# gitaly['git_bin_path'] = "/opt/gitlab/embedded/bin/git" # A custom path for the 'git' executable # gitaly['git_bin_path'] = "/opt/gitlab/embedded/bin/git" # A custom path for the 'git' executable
# gitaly['use_bundled_git'] = true # Whether to use bundled Git.
# gitaly['open_files_ulimit'] = 15000 # Maximum number of open files allowed for the gitaly process # gitaly['open_files_ulimit'] = 15000 # Maximum number of open files allowed for the gitaly process
# gitaly['ruby_max_rss'] = 300000000 # RSS threshold in bytes for triggering a gitaly-ruby restart # gitaly['ruby_max_rss'] = 300000000 # RSS threshold in bytes for triggering a gitaly-ruby restart
# gitaly['ruby_graceful_restart_timeout'] = '10m' # Grace time for a gitaly-ruby process to finish ongoing requests # gitaly['ruby_graceful_restart_timeout'] = '10m' # Grace time for a gitaly-ruby process to finish ongoing requests
@ -2373,6 +2402,7 @@ nginx['listen_https'] = false
# praefect['key_path'] = "/var/opt/gitlab/prafect/key.pem" # praefect['key_path'] = "/var/opt/gitlab/prafect/key.pem"
# praefect['prometheus_listen_addr'] = "localhost:9652" # praefect['prometheus_listen_addr'] = "localhost:9652"
# praefect['prometheus_grpc_latency_buckets'] = "[0.001, 0.005, 0.025, 0.1, 0.5, 1.0, 10.0, 30.0, 60.0, 300.0, 1500.0]" # praefect['prometheus_grpc_latency_buckets'] = "[0.001, 0.005, 0.025, 0.1, 0.5, 1.0, 10.0, 30.0, 60.0, 300.0, 1500.0]"
# praefect['separate_database_metrics'] = true
# praefect['logging_level'] = "warn" # praefect['logging_level'] = "warn"
# praefect['logging_format'] = "json" # praefect['logging_format'] = "json"
# praefect['virtual_storages'] = { # praefect['virtual_storages'] = {
@ -3045,6 +3075,14 @@ package['modify_kernel_parameters'] = __MODIFY_KERNEL_PARAMETERS__
# 'poll_interval': 60 # Optional # 'poll_interval': 60 # Optional
# } # }
#### How service desk emails are delivered to Rails process. Accept either
#### sidekiq or webhook. The default config is sidekiq.
# gitlab_rails['service_desk_email_delivery_method'] = "sidekiq"
#### Token to authenticate webhook requests. The token must be exactly 32 bytes,
#### encoded with base64
# gitlab_rails['service_desk_email_auth_token'] = nil
################################################################################ ################################################################################
## Spamcheck (EE only) ## Spamcheck (EE only)
################################################################################# #################################################################################

View file

@ -2,7 +2,7 @@
"name": "GitLab", "name": "GitLab",
"id": "gitlab", "id": "gitlab",
"packaging_format": 1, "packaging_format": 1,
"version": "14.8.3~ynh1", "version": "14.9.0~ynh1",
"description": { "description": {
"en": "Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features", "en": "Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features",
"fr": "Gestionnaire de dépôts Git proposant des fonctionnalités de wiki, suivi de bugs et de pipeline CI/CD" "fr": "Gestionnaire de dépôts Git proposant des fonctionnalités de wiki, suivi de bugs et de pipeline CI/CD"

View file

@ -1,17 +1,17 @@
#!/bin/bash #!/bin/bash
gitlab_version="14.8.3" gitlab_version="14.9.0"
# sha256sum found here: https://packages.gitlab.com/gitlab # sha256sum found here: https://packages.gitlab.com/gitlab
gitlab_debian_version="$(lsb_release -sc)" gitlab_debian_version="$(lsb_release -sc)"
gitlab_x86_64_bullseye_source_sha256="948adb94af48fc6100cf2d0e9015f31e02cfbbd2c0a57457e13b80ea711428ff" gitlab_x86_64_bullseye_source_sha256="1ee36b1e74d424f2ef7cdb7de98e5b322afea3a674e801d5fbf670f5377add63"
gitlab_x86_64_buster_source_sha256="1f76f7e55dfc05a5bfa4db0ffac9c0ef1cb51e85ccb95e096cfb46594bc04919" gitlab_x86_64_buster_source_sha256="f01412a7c385cba3ed92689f9165f0e72aa13b33d9a802f09e55336e426f4f7c"
gitlab_arm64_bullseye_source_sha256="ec0af5697f0c8607d3af9073cc605d4c29e0a6ca9458d53e7842408eb4df1369" gitlab_arm64_bullseye_source_sha256="a849ce359fda7e19adaa4302ba92a3dd566f384bb6b81f6ebc919787299ce33d"
gitlab_arm64_buster_source_sha256="8b1fb75525b94c2670393676279860d7a64a365d1ce4e69b21bbd50579141f39" gitlab_arm64_buster_source_sha256="e77e89ee193a13d50e0e6400f586b1ec86afc8a43e7d5e00242aa70d86ec278b"
gitlab_arm_buster_source_sha256="1bc0b92ec8bb97cf21d4437ba23c4e0568b7f60eb301f34c53f1ab620774c736" gitlab_arm_buster_source_sha256="d913d4835c10d569c5298cc3d6bf765b0c83b6d08be6646a89a8850579456a71"
architecture=$(ynh_app_setting_get --app="$app" --key=architecture) architecture=$(ynh_app_setting_get --app="$app" --key=architecture)
@ -35,8 +35,8 @@ elif [ "$architecture" = "arm64" ]; then
elif [ "$architecture" = "arm" ]; then elif [ "$architecture" = "arm" ]; then
# If the version for arm doesn't exist, then use an older one # If the version for arm doesn't exist, then use an older one
if [ -z "$gitlab_arm_buster_source_sha256" ]; then if [ -z "$gitlab_arm_buster_source_sha256" ]; then
gitlab_version="14.8.3" gitlab_version="14.9.0"
gitlab_arm_buster_source_sha256="1bc0b92ec8bb97cf21d4437ba23c4e0568b7f60eb301f34c53f1ab620774c736" gitlab_arm_buster_source_sha256="d913d4835c10d569c5298cc3d6bf765b0c83b6d08be6646a89a8850579456a71"
fi fi
gitlab_source_sha256=$gitlab_arm_buster_source_sha256 gitlab_source_sha256=$gitlab_arm_buster_source_sha256
fi fi