scuttlebot domain variables
This commit is contained in:
parent
8d069c53ee
commit
5912190040
|
@ -44,6 +44,8 @@ GIT_SSB_PORT=7718
|
|||
NGINX_GIT_SSB_PORT=7719
|
||||
|
||||
scuttlebot_variables=(MY_USERNAME
|
||||
SCUTTLEBOT_DOMAIN_NAME
|
||||
SCUTTLEBOT_CODE
|
||||
DEFAULT_DOMAIN_NAME
|
||||
SYSTEM_TYPE)
|
||||
|
||||
|
@ -225,6 +227,9 @@ function scuttlebot_git_setup {
|
|||
echo ' add_header X-Content-Type-Options nosniff;' >> $git_ssb_nginx_site
|
||||
echo ' add_header X-Frame-Options SAMEORIGIN;' >> $git_ssb_nginx_site
|
||||
else
|
||||
if [ ! $SCUTTLEBOT_DOMAIN_NAME ]; then
|
||||
exit 7357225
|
||||
fi
|
||||
git_ssb_nginx_site=/etc/nginx/sites-available/${SCUTTLEBOT_DOMAIN_NAME}
|
||||
function_check nginx_http_redirect
|
||||
nginx_http_redirect $SCUTTLEBOT_DOMAIN_NAME "index index.html"
|
||||
|
|
Loading…
Reference in New Issue