mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
Add some conf for uniconPort
This commit is contained in:
parent
463daf0db6
commit
8094273c58
2 changed files with 7 additions and 3 deletions
|
@ -17,5 +17,7 @@ gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block
|
||||||
user_filter: ''
|
user_filter: ''
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
nginx['listen_port'] = PORT
|
nginx['listen_port'] = PORTNGINX
|
||||||
nginx['listen_https'] = false
|
nginx['listen_https'] = false
|
||||||
|
|
||||||
|
unicorn['port'] = PORTUNICORN
|
||||||
|
|
|
@ -28,7 +28,8 @@ source /usr/share/yunohost/helpers
|
||||||
ynh_app_setting_set "$app" is_public "$is_public"
|
ynh_app_setting_set "$app" is_public "$is_public"
|
||||||
|
|
||||||
mailadmin=$(ynh_user_get_info $admin mail)
|
mailadmin=$(ynh_user_get_info $admin mail)
|
||||||
port=$(ynh_find_port 8080)
|
portNginx=$(ynh_find_port 8080)
|
||||||
|
portUnicorn=$(ynh_find_port 8080)
|
||||||
rdmPass=$(ynh_string_random 30)
|
rdmPass=$(ynh_string_random 30)
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
|
@ -49,7 +50,8 @@ sudo apt-get install -yy gitlab-ce
|
||||||
# Gitlab configuration
|
# Gitlab configuration
|
||||||
|
|
||||||
sed -i "s@GENERATED_EXTERNAL_URL@https://$domain@" ../conf/gitlab.rb
|
sed -i "s@GENERATED_EXTERNAL_URL@https://$domain@" ../conf/gitlab.rb
|
||||||
sed -i "s@PORT@$port@" ../conf/gitlab.rb
|
sed -i "s@PORTNGINX@$portNginx@" ../conf/gitlab.rb
|
||||||
|
sed -i "s@PORTUNICORN@$portUnicorn@" ../conf/gitlab.rb
|
||||||
|
|
||||||
sudo cp -f ../conf/gitlab.rb /etc/gitlab/gitlab.rb
|
sudo cp -f ../conf/gitlab.rb /etc/gitlab/gitlab.rb
|
||||||
sudo gitlab-ctl reconfigure
|
sudo gitlab-ctl reconfigure
|
||||||
|
|
Loading…
Add table
Reference in a new issue