Skip to content

Commit

Permalink
๐Ÿ—ƒ๏ธ Committing everything that changed ๐Ÿ—ƒ๏ธ
Browse files Browse the repository at this point in the history
install.sh
  • Loading branch information
casjay committed May 11, 2023
1 parent e6105ae commit d00eb89
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
##@Version : 202305111933-git
##@Version : 202305111942-git
# @@Author : Jason Hempstead
# @@Contact : jason@casjaysdev.com
# @@License : LICENSE.md
# @@ReadME : install.sh --help
# @@Copyright : Copyright: (c) 2023 Jason Hempstead, Casjays Developments
# @@Created : Thursday, May 11, 2023 19:33 EDT
# @@Created : Thursday, May 11, 2023 19:42 EDT
# @@File : install.sh
# @@Description : Container installer script for it-tools
# @@Changelog : New script
Expand All @@ -27,7 +27,7 @@
# shellcheck disable=SC2317
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
APPNAME="it-tools"
VERSION="202305111933-git"
VERSION="202305111942-git"
REPO_BRANCH="${GIT_REPO_BRANCH:-main}"
HOME="${USER_HOME:-$HOME}"
USER="${SUDO_USER:-$USER}"
Expand Down Expand Up @@ -2026,7 +2026,6 @@ if [ "$NINGX_VHOSTS_WRITABLE" = "true" ]; then
NGINX_VHOST_NAMES="${NGINX_VHOST_NAMES:-}"
fi
cp -f "$INSTDIR/nginx/proxy.conf" "$NGINX_VHOSTS_CONF_FILE_TMP"
[ -n "$NGINX_PROXY_URL" ] && [ -n "$NGINX_PORT" ] && NGINX_SET_PROXY_ADDRESS="$NGINX_PROXY_URL:$NGINX_PORT" || unset NGINX_SET_PROXY_ADDRESS
sed -i "s|REPLACE_APPNAME|$APPNAME|g" "$NGINX_VHOSTS_CONF_FILE_TMP" &>/dev/null
sed -i "s|REPLACE_NGINX_PORT|$NGINX_PORT|g" "$NGINX_VHOSTS_CONF_FILE_TMP" &>/dev/null
sed -i "s|REPLACE_HOST_PROXY|$NGINX_PROXY_URL|g" "$NGINX_VHOSTS_CONF_FILE_TMP" &>/dev/null
Expand Down Expand Up @@ -2062,13 +2061,14 @@ if [ "$NINGX_VHOSTS_WRITABLE" = "true" ]; then
else
NGINX_PROXY_URL=""
fi
[ -n "$NGINX_PROXY_URL" ] && NGNIX_REVERSE_ADDRESS="$NGINX_PROXY_URL"
[ -f "$NGINX_MAIN_CONFIG" ] && NGINX_PROXY_URL="$CONTAINER_PROTOCOL://$CONTAINER_HOSTNAME"
fi
{ [ "$NGINX_VHOST_NAMES" = "" ] || [ "$NGINX_VHOST_NAMES" = " " ]; } && unset NGINX_VHOST_NAMES
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Setup an internal host
NGINX_VHOSTS_PROXY_INT_TMP="/tmp/$$.$HOST_NGINX_INTERNAL_HOST.$HOST_NGINX_INTERNAL_DOMAIN"
if [ -n "$NGINX_SET_PROXY_ADDRESS" ] && [ -n "$HOST_NGINX_INTERNAL_DOMAIN" ]; then
if [ -n "$NGNIX_REVERSE_ADDRESS" ] && [ -n "$HOST_NGINX_INTERNAL_DOMAIN" ]; then
HOST_NGINX_INTERNAL_DOMAIN="$HOST_NGINX_INTERNAL_HOST.$HOST_NGINX_INTERNAL_DOMAIN"
cat <<EOF | tee "$NGINX_VHOSTS_PROXY_INT_TMP" &>/dev/null
server {
Expand All @@ -2085,7 +2085,7 @@ server {
include /etc/nginx/global.d/nginx-defaults.conf;
location / {
proxy_pass http://$NGINX_SET_PROXY_ADDRESS;
proxy_pass $NGNIX_REVERSE_ADDRESS;
proxy_http_version 1.1;
proxy_connect_timeout 3600;
proxy_send_timeout 3600;
Expand Down

0 comments on commit d00eb89

Please sign in to comment.