added database redir from frond-end

This commit is contained in:
2020-09-10 14:39:45 +02:00
parent c784751332
commit 653548ee5e
4 changed files with 8 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ mkdir -p /var/www/html /etc/nginx/sites-available /etc/nginx/sites-enabled /etc/
wget -q -t7 "$repo"/raw/"$branchtype"/"$branch"/CoreModules/nginx/config/nginx/fastcgi.conf -O /etc/nginx/fastcgi.conf
wget -q -t7 "$repo"/raw/"$branchtype"/"$branch"/CoreModules/nginx/config/nginx/fastcgi-php.conf -O /etc/nginx/snippets/fastcgi-php.conf
wget -q -t7 "$repo"/raw/"$branchtype"/"$branch"/CoreModules/nginx/config/nginx/snippets-ssl.conf -O /etc/nginx/snippets/ngx-ssl.conf
wget -q -t7 "$repo"/raw/"$branchtype"/"$branch"/CoreModules/nginx/config/nginx/snippets-backendredir.conf -O /etc/nginx/snippets/ngx-backendredir.conf
wget -q -t7 "$repo"/raw/"$branchtype"/"$branch"/CoreModules/nginx/config/nginx/nginx-default.conf -O /etc/nginx/nginx.conf
if [ $domainwww = 1 ]; then

View File

@@ -0,0 +1,3 @@
location /database {
return 301 http://$hostname/backend/database;
}