Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
63c64f60
Commit
63c64f60
authored
Feb 12, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日比谷カスタム
parent
37ee0e77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
+63
-0
custom/hibiya/env.sh
+63
-0
No files found.
custom/hibiya/env.sh
0 → 100644
View file @
63c64f60
#!/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" : true,
"loginPage" : "index.html",
"anonymousLoginFlg" : true,
"anonymousLoginPath" : "user",
"anonymousLoginId" : "nologin",
"appName" : "ABookWebCL",
"appVersion" : "0.0.1"
}
EOF
}
modify_htaccess
"
$PROTOCOL
://
$DOMAIN
/web/"
modify_api
"
$PROTOCOL
://
$DOMAIN
/acms"
# case "$1" in
# localhost)
# modify_htaccess "http://localhost/nmoto/Sites/webviewer/"
# modify_api "https://web3.agentec.jp/acms"
# ;;
# web2)
# modify_htaccess "https://web2.mediaservice.agentec.jp/mc/webviewer/"
# modify_api "https://web2.mediaservice.agentec.jp/mc"
# ;;
# web3)
# modify_htaccess "https://web3.agentec.jp/web/"
# modify_api "https://web3.agentec.jp/acms"
# ;;
# *)
# echo $"Usage: $0 {localhost|web2|web3}"
# ;;
# esac
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment