Commit 03e59c13 authored by Sietse Ringers's avatar Sietse Ringers

Also set idin server url as grunt parameter

parent 3dfce9a6
module.exports = function (grunt) {
// Setup urls for the keyshare server, api server, and irma_js
// these are used to configure the webclient
var api_server_url, api_web_url, irma_js_url;
var api_server_url, api_web_url, irma_js_url, idin_server_url;
if ( (typeof(grunt.option("api_server_url")) === "undefined") ) {
console.log("INFO: set api_server_url (possibly also irma_js_url) to enable email issuing");
console.log("INFO: set api_server_url (possibly also irma_js_url) to enable issuing");
}
if ( (typeof(grunt.option("idin_server_url")) === "undefined") ) {
console.log("INFO: set idin_server_url to enable app");
}
idin_server_url = grunt.option("idin_server_url");
api_server_url = grunt.option("api_server_url") + "/api/v2/";
api_web_url = grunt.option("api_web_url") || grunt.option("api_server_url");
api_web_url += "/server/";
irma_js_url = grunt.option("irma_js_url") || grunt.option("api_server_url");
irma_js_url += "/client/";
console.log("idin_server_url:", idin_server_url);
console.log("api_server_url:", api_server_url);
console.log("api_web_url:", api_web_url);
console.log("irma_js_url:", irma_js_url);
......@@ -50,6 +55,9 @@ module.exports = function (grunt) {
}, {
pattern: /\[IRMA_JS_URL\]/g,
replacement: irma_js_url,
}, {
pattern: /\[IDIN_SERVER_URL\]/g,
replacement: idin_server_url,
},
],
},
......
......@@ -11,7 +11,7 @@
<script type="text/javascript" src="JS/common.js"></script>
<script type="text/javascript" src="JS/iDIN.js"></script>
<script type="text/javascript">
var server = "https://privacybydesign.foundation/tomcat/irma_idin_server/api/v1/idin";
var server = "[IDIN_SERVER_URL]/api/v1/idin";
</script>
<title> IRMA attributen vanuit iDIN </title>
......
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