File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- if [ -f /openshift-web-console-config/config.js ]; then
4
- cp -f /openshift-web-console-config/config.js config.js
5
- else
3
+ if [ ! -f /openshift-web-console-config/config.js ]; then
6
4
echo " No config.js is mounted, the console can not run without a configuration defined."
7
5
exit -1
8
6
fi
Original file line number Diff line number Diff line change @@ -5,9 +5,14 @@ Listen 0.0.0.0:8443
5
5
SSLCertificateFile "${HTTPD_CONFIGURATION_PATH}/tls/tls.crt"
6
6
SSLCertificateKeyFile "${HTTPD_CONFIGURATION_PATH}/tls/tls.key"
7
7
8
+ <Directory "/openshift-web-console-config">
9
+ Require all granted
10
+ </Directory>
11
+
8
12
RewriteEngine on
9
13
# First strip the context root
10
14
RewriteRule ^${OSC_CONTEXT_ROOT}(.*) /$1
15
+ RewriteRule ^/config\.js$ /openshift-web-console-config/config.js [L]
11
16
RewriteRule ^/java$ ${OSC_ASSET_PUBLIC_URL}java/ [R,L]
12
17
RewriteCond %{DOCUMENT_ROOT}/java/$1 !-f
13
18
RewriteRule ^/java/(.*)$ /java/index.html [L,PT]
You can’t perform that action at this time.
0 commit comments