|
@@ -44,6 +44,8 @@ GIT_SSB_PORT=7718
|
44
|
44
|
NGINX_GIT_SSB_PORT=7719
|
45
|
45
|
|
46
|
46
|
scuttlebot_variables=(MY_USERNAME
|
|
47
|
+ SCUTTLEBOT_DOMAIN_NAME
|
|
48
|
+ SCUTTLEBOT_CODE
|
47
|
49
|
DEFAULT_DOMAIN_NAME
|
48
|
50
|
SYSTEM_TYPE)
|
49
|
51
|
|
|
@@ -225,6 +227,9 @@ function scuttlebot_git_setup {
|
225
|
227
|
echo ' add_header X-Content-Type-Options nosniff;' >> $git_ssb_nginx_site
|
226
|
228
|
echo ' add_header X-Frame-Options SAMEORIGIN;' >> $git_ssb_nginx_site
|
227
|
229
|
else
|
|
230
|
+ if [ ! $SCUTTLEBOT_DOMAIN_NAME ]; then
|
|
231
|
+ exit 7357225
|
|
232
|
+ fi
|
228
|
233
|
git_ssb_nginx_site=/etc/nginx/sites-available/${SCUTTLEBOT_DOMAIN_NAME}
|
229
|
234
|
function_check nginx_http_redirect
|
230
|
235
|
nginx_http_redirect $SCUTTLEBOT_DOMAIN_NAME "index index.html"
|