-
-
Save mvidalgarcia/6f850a18354a62bd2d46f3fe3c4a7160 to your computer and use it in GitHub Desktop.
reana-ui work from home recipe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reanahub/reana | |
diff --git a/helm/reana/values.yaml b/helm/reana/values.yaml | |
index 7a36ad2..45e5eca 100644 | |
--- a/helm/reana/values.yaml | |
+++ b/helm/reana/values.yaml | |
@@ -2,7 +2,7 @@ | |
# This is a YAML-formatted file. | |
# Declare variables to be passed into your templates. | |
-# reana_url: reana.cern.ch | |
+# reana_url: "cachopo.cern.ch" # unset reana_url (allowed hosts) | |
# `reana_url` should be set for third party integrations to work and for | |
# production deployments to be secure. | |
# reanahub/reana-ui | |
diff --git a/reana-ui/src/actions.js b/reana-ui/src/actions.js | |
index 59b823e..29f11a1 100644 | |
--- a/reana-ui/src/actions.js | |
+++ b/reana-ui/src/actions.js | |
@@ -32,13 +32,18 @@ export const WORKFLOW_SPECIFICATION_FETCH = "Fetch workflow specification"; | |
export const WORKFLOW_SPECIFICATION_RECEIVED = | |
"Workflow specification received"; | |
-const USER_INFO_URL = `${config.api}/api/me`; | |
-const USER_LOGOUT_URL = `${config.api}/api/logout`; | |
-const WORKFLOWS_URL = `${config.api}/api/workflows`; | |
-const WORKFLOW_LOGS_URL = id => `${config.api}/api/workflows/${id}/logs`; | |
+const REANA_ACCESS_TOKEN = "<CHANGE_ME>"; | |
+const USER_INFO_URL = `${config.api}/api/me?access_token=${REANA_ACCESS_TOKEN}`; | |
+const USER_LOGOUT_URL = `${config.api}/api/logout?access_token=${REANA_ACCESS_TOKEN}`; | |
+const WORKFLOWS_URL = `${config.api}/api/workflows?access_token=${REANA_ACCESS_TOKEN}`; | |
+const WORKFLOW_LOGS_URL = id => | |
+ `${config.api}/api/workflows/${id}/logs?access_token=${REANA_ACCESS_TOKEN}`; | |
const WORKFLOW_SPECIFICATION_URL = id => | |
- `${config.api}/api/workflows/${id}/specification`; | |
-const WORKFLOW_FILES_URL = id => `${config.api}/api/workflows/${id}/workspace`; | |
+ `${config.api}/api/workflows/${id}/specification?access_token=${REANA_ACCESS_TOKEN}`; | |
+const WORKFLOW_FILES_URL = id => | |
+ `${config.api}/api/workflows/${id}/workspace?access_token=${REANA_ACCESS_TOKEN}`; | |
export function loadUser() { | |
return async dispatch => { | |
diff --git a/reana-ui/src/config.js b/reana-ui/src/config.js | |
index 5d3ad3a..231bcc9 100644 | |
--- a/reana-ui/src/config.js | |
+++ b/reana-ui/src/config.js | |
@@ -10,7 +10,8 @@ | |
const config = { | |
name: "CERN REANA UI", | |
- api: "https://reana.cern.ch", | |
+ api: "https://192.168.99.111:30443", // Your IP (you can guess it with `reana-dev setup-environment`) | |
poolingSecs: 15, | |
docsURL: "http://docs.reana.io/", | |
forumURL: "https://forum.reana.io/", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment