File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 19
19
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
20
20
RewriteRule . %1/%2 [L,PT]
21
21
22
+ RewriteCond %{ENV:GORMUNGANDR_URL} ^[a-zA-Z].* [NC]
23
+ RewriteRule ^/(.*route_schedules.*) %{ENV:GORMUNGANDR_URL}/$1 [P]
24
+ ProxyPassReverse / %{ENV:GORMUNGANDR_URL}/
25
+
22
26
AddOutputFilterByType DEFLATE application/json
23
27
24
28
CustomLog /var/log/apache2/access.log vhost_combined_timetaken
Original file line number Diff line number Diff line change @@ -9,17 +9,20 @@ function show_help() {
9
9
Usage: ${0##*/ } -m monitor-process -r max-requests
10
10
-m [0|1] activate monitor-process
11
11
-r max-requests before reload for jormungandr worker
12
+ -g Optional: gormungandr url for route_schedules API (Example: http://gormungandr)
12
13
EOF
13
14
}
14
15
15
- while getopts " m:r:c:h" opt; do
16
+ while getopts " m:r:c:g: h" opt; do
16
17
case $opt in
17
18
m) monitor_processes=$OPTARG
18
19
;;
19
20
r) app_max_requests=$OPTARG
20
21
;;
21
22
c) jormun_cache_items=$OPTARG
22
23
;;
24
+ g) gormungandr_url=$OPTARG
25
+ ;;
23
26
h|\? )
24
27
show_help
25
28
exit 1
47
50
48
51
jormungandr_cache2=" name=jormungandr,items=${jormun_cache_items} "
49
52
53
+ if [[ ! -z $gormungandr_url ]]
54
+ then
55
+ echo " export GORMUNGANDR_URL=$gormungandr_url " >> /etc/apache2/envvars
56
+ fi
50
57
# run apache2
51
58
service apache2 start
52
59
if [ $? == 1 ]
You can’t perform that action at this time.
0 commit comments