1
0
Fork 0
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:
kam 2017-06-29 09:56:39 +02:00
parent 463daf0db6
commit 8094273c58
2 changed files with 7 additions and 3 deletions

View file

@ -17,5 +17,7 @@ gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block
user_filter: ''
EOS
nginx['listen_port'] = PORT
nginx['listen_port'] = PORTNGINX
nginx['listen_https'] = false
unicorn['port'] = PORTUNICORN

View file

@ -28,7 +28,8 @@ source /usr/share/yunohost/helpers
ynh_app_setting_set "$app" is_public "$is_public"
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)
# Check domain/path availability
@ -49,7 +50,8 @@ sudo apt-get install -yy gitlab-ce
# Gitlab configuration
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 gitlab-ctl reconfigure