1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00

Fix Nginx problem

This commit is contained in:
Pierre Bourré 2018-12-19 00:34:06 +01:00
parent 0b52ed7eb3
commit 7422d5742e
5 changed files with 4 additions and 16 deletions

View file

@ -1,4 +1,3 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
proxy_pass http://localhost:__PORT__;
proxy_set_header Host $host;

View file

@ -23,17 +23,6 @@ else
your hardware and the result of the command \"uname -m\"." 1
fi
#=================================================
# CONFIGURE NGINX
#=================================================
config_nginx() {
if [ "$path_url" != "/" ]
then
ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf"
fi
ynh_add_nginx_config
}
#=================================================
# CREATE FOLDERS
#=================================================

View file

@ -84,7 +84,7 @@ then
domain="$old_domain"
path_url="$new_path"
# Create a dedicated nginx config
config_nginx
ynh_add_nginx_config
fi
# Change the domain for nginx

View file

@ -70,7 +70,7 @@ ynh_app_setting_set $app unicorn_port $portUnicorn
#=================================================
# Create a dedicated nginx config
config_nginx
ynh_add_nginx_config
#=================================================
# CONFIGURE GITLAB

View file

@ -55,7 +55,7 @@ path_url=$(ynh_normalize_url_path $path_url)
#=================================================
# Modify Nginx configuration file and copy it to Nginx conf directory
config_nginx
ynh_add_nginx_config
#=================================================
# CONFIGURE GITLAB