Commit a171ad38 by Masaru Abe

SRL様向け調整

parent 9c3c2d88
#!/bin/sh
PROTOCOL=$1
DOMAIN=$2
modify_htaccess()
{
URI=$1
cat > abvw/.htaccess << EOF
SetEnvIf Referer "^$URI" RefererCheck
Order deny,allow
Deny from all
Allow from env=RefererCheck
<Files ~ "\.(js|json)$">
Header add Pragma "no-cache"
Header set Cache-Control no-cache
</Files>
EOF
}
modify_api()
{
URI_PREFIX=$1
cat > abvw/common/json/sys/conf.json << EOF
{
"apiUrl" : "$URI_PREFIX/{0}/abvapi",
"apiLoginUrl" : "$URI_PREFIX/nuabvapi",
"apiResourceDlUrl" : "$URI_PREFIX/{0}/dl",
"bookShelfCount" : 15,
"bookListCount" : 15,
"screenlockTimeDefault" : 30,
"pushPageCount" : 5,
"pushTimePeriod" : 60,
"debug" : false,
"loginPage" : "index.html",
"anonymousLoginFlg" : false,
"anonymousLoginPath" : "test",
"anonymousLoginId" : "nologin",
"appName" : "ABookWebCL",
"appVersion" : "0.0.1",
"optMusicMode" : 1,
"sortTypeHome" : "1",
"sortOrderHome" : "1",
"sortTypeBookmark" : "1",
"sortOrderBookmark" : "2",
"sortTypeHistory" : "1",
"sortOrderHistory" : "2",
"sortTypeSearch" : "1",
"sortOrderSearch" : "1"
}
EOF
}
modify_htaccess "$PROTOCOL://$DOMAIN/acms/webvw/"
modify_api "$PROTOCOL://$DOMAIN/acms"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment