Change gogs port

This commit is contained in:
Bob Mottram 2018-05-14 23:06:41 +01:00
parent 399c705f17
commit 179521763c
3 changed files with 11 additions and 14 deletions

View File

@ -39,6 +39,7 @@ GIT_CODE=
GIT_ONION_PORT=8090 GIT_ONION_PORT=8090
GIT_ADMIN_PASSWORD= GIT_ADMIN_PASSWORD=
GOGS_BIN= GOGS_BIN=
GOGS_PORT=3145
gogs_variables=(ONION_ONLY gogs_variables=(ONION_ONLY
GIT_ADMIN_PASSWORD GIT_ADMIN_PASSWORD
@ -596,7 +597,7 @@ function install_gogs {
echo ' location / {'; } >> "/etc/nginx/sites-available/${GIT_DOMAIN_NAME}" echo ' location / {'; } >> "/etc/nginx/sites-available/${GIT_DOMAIN_NAME}"
function_check nginx_limits function_check nginx_limits
nginx_limits "${GIT_DOMAIN_NAME}" '10G' nginx_limits "${GIT_DOMAIN_NAME}" '10G'
{ echo ' proxy_pass http://localhost:3000;'; { echo " proxy_pass http://localhost:${GOGS_PORT};";
echo ' }'; echo ' }';
echo ''; echo '';
echo ' fastcgi_buffers 64 4K;'; echo ' fastcgi_buffers 64 4K;';
@ -628,7 +629,7 @@ function install_gogs {
echo ' location / {'; } >> "/etc/nginx/sites-available/${GIT_DOMAIN_NAME}" echo ' location / {'; } >> "/etc/nginx/sites-available/${GIT_DOMAIN_NAME}"
function_check nginx_limits function_check nginx_limits
nginx_limits "${GIT_DOMAIN_NAME}" '10G' nginx_limits "${GIT_DOMAIN_NAME}" '10G'
{ echo ' proxy_pass http://localhost:3000;'; { echo " proxy_pass http://localhost:${GOGS_PORT};";
echo ' }'; echo ' }';
echo ''; echo '';
echo ' fastcgi_buffers 64 4K;'; echo ' fastcgi_buffers 64 4K;';
@ -713,7 +714,7 @@ function install_gogs {
echo "DOMAIN = ${GIT_ONION_HOSTNAME}" >> ${GOGS_CONFIG_FILE} echo "DOMAIN = ${GIT_ONION_HOSTNAME}" >> ${GOGS_CONFIG_FILE}
echo "ROOT_URL = http://$GIT_DOMAIN_NAME/" >> ${GOGS_CONFIG_FILE} echo "ROOT_URL = http://$GIT_DOMAIN_NAME/" >> ${GOGS_CONFIG_FILE}
fi fi
{ echo 'HTTP_PORT = 3000'; { echo "HTTP_PORT = ${GOGS_PORT}";
echo "SSH_PORT = $SSH_PORT"; echo "SSH_PORT = $SSH_PORT";
echo 'SSH_DOMAIN = %(DOMAIN)s'; echo 'SSH_DOMAIN = %(DOMAIN)s';
echo "CERT_FILE = /etc/ssl/certs/${GIT_DOMAIN_NAME}.pem"; echo "CERT_FILE = /etc/ssl/certs/${GIT_DOMAIN_NAME}.pem";

View File

@ -33,7 +33,7 @@ SHOW_ON_ABOUT=1
ROCKETCHAT_DOMAIN_NAME= ROCKETCHAT_DOMAIN_NAME=
ROCKETCHAT_CODE= ROCKETCHAT_CODE=
ROCKETCHAT_ONION_PORT=9722 ROCKETCHAT_ONION_PORT=9722
ROCKETCHAT_PORT_INTERNAL=1233 ROCKETCHAT_PORT_INTERNAL=3000
rocketchat_variables=(ONION_ONLY rocketchat_variables=(ONION_ONLY
ROCKETCHAT_DOMAIN_NAME ROCKETCHAT_DOMAIN_NAME

View File

@ -873,12 +873,10 @@ if [ $app_webui ]; then
echo '' echo ''
echo " { echo ' add_header Strict-Transport-Security max-age=15768000;';" echo " { echo ' add_header Strict-Transport-Security max-age=15768000;';"
echo " echo '';" echo " echo '';"
echo " echo ' # Logs';" echo " echo ' access_log /dev/null;';"
echo " echo ' access_log /dev/null;';" echo " echo ' error_log /dev/null;';"
echo " echo ' error_log /dev/null;';"
echo " echo '';" echo " echo '';"
echo " echo ' # Root';" echo " echo \" root /var/www/\$${app_name_upper}_DOMAIN_NAME/htdocs;\";"
echo " echo \" root /var/www/\$${app_name_upper}_DOMAIN_NAME/htdocs;\";"
echo " echo '';" echo " echo '';"
if [[ "$app_php" == 'yes' ]]; then if [[ "$app_php" == 'yes' ]]; then
echo " echo ' index index.php;';" echo " echo ' index index.php;';"
@ -920,12 +918,10 @@ if [ $app_webui ]; then
echo " echo '' >> \"\$${app_name}_nginx_site\"" echo " echo '' >> \"\$${app_name}_nginx_site\""
echo " nginx_security_options \"\$${app_name_upper}_DOMAIN_NAME\"" echo " nginx_security_options \"\$${app_name_upper}_DOMAIN_NAME\""
echo " { echo '';" echo " { echo '';"
echo " echo ' # Logs';" echo " echo ' access_log /dev/null;';"
echo " echo ' access_log /dev/null;';" echo " echo ' error_log /dev/null;';"
echo " echo ' error_log /dev/null;';"
echo " echo '';" echo " echo '';"
echo " echo ' # Root';" echo " echo \" root /var/www/\$${app_name_upper}_DOMAIN_NAME/htdocs;\";"
echo " echo \" root /var/www/\$${app_name_upper}_DOMAIN_NAME/htdocs;\";"
echo " echo '';" echo " echo '';"
if [[ "$app_php" == 'yes' ]]; then if [[ "$app_php" == 'yes' ]]; then
echo " echo ' index index.php;';" echo " echo ' index index.php;';"