...
 
Commits (2)
This diff is collapsed.
......@@ -34,13 +34,12 @@ export const clientSecret = 'testtest'; //process.env.REACT_APP_HYDRA_CLIENT_SEC
console.log(process.env.REACT_APP_HYDRA_CLUSTER_URL);
let oauth2 = new JSO({
providerID: "hydra",
client_id: "test",
client_secret: clientSecret,
response_type: 'code',
redirect_uri: 'http://' + window.location.host + '/login/callback',
redirect_uri: window.location.protocol + '//' + window.location.host + '/login/callback',
authorization: process.env.REACT_APP_HYDRA_CLUSTER_URL + '/oauth2/auth',
token: process.env.REACT_APP_HYDRA_CLUSTER_URL + '/oauth2/token',
scopes: { request: ['offline', 'openid'] },
......
......@@ -311,9 +311,9 @@ services:
REACT_APP_GATEWAY_SERVICE_URL: "http://localhost:5001/graphql"
REACT_APP_HYDRA_CLUSTER_URL: "http://localhost:5002"
# Uncomment to link to your local dev environment
# command: ["yarn", "run", "start"]
# volumes:
# - "$GOPATH/src/gitlab.com/empowerlab/example/admin:/opt/app-root"
command: ["yarn", "run", "start"]
volumes:
- "$GOPATH/src/gitlab.com/empowerlab/example/admin:/opt/app-root"
networks:
empower:
\ No newline at end of file
empower:
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: admin
......
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: customer
......
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: gateway
......
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: invoicing
......
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: login
......@@ -13,7 +13,7 @@ spec:
spec:
initContainers:
- name: login-automigrate
image: registry.gitlab.com/empowerlab/stack/login/finalci:latest
image: registry.gitlab.com/empowerlab/stack/login/master:latest
imagePullPolicy: Always
command: ["sh"]
args: ["-c", "cd /go/src/gitlab.com/empowerlab/stack/login && login migrate"]
......@@ -42,7 +42,7 @@ spec:
value: "http://login.$KUBE_INGRESS_BASE_DOMAIN"
containers:
- name: login
image: registry.gitlab.com/empowerlab/stack/login/finalci:latest
image: registry.gitlab.com/empowerlab/stack/login/master:latest
imagePullPolicy: Always
env:
- name: DATABASE_URL
......
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: product
......