Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-13877

FIWARE.Question.Tech.Fiware - how to Connect pep proxy to Orion and configure both with HTTPS?.

    Details

      Description

      Created question in FIWARE Q/A platform on 19-03-2018 at 10:03
      Please, ANSWER this question AT https://stackoverflow.com/questions/49360026/fiware-how-to-connect-pep-proxy-to-orion-and-configure-both-with-https

      Question:
      Fiware - how to Connect pep proxy to Orion and configure both with HTTPS?

      Description:
      I am working with orion and i try to protect the future apps using the pep proxy and keyrock, but i cant find a way combine these 3 GE. All my base Files are in this repository my repository, although i have running orion, keyrock and cygnus, i cant to send requests using the pep proxy.

      this is my docker-compose.yml file:

      version: "2"
      networks:
      fiware:
      driver: bridge
      services:

      1. Base de datos Orion
        mongodb:
        image: mongo:3.4.7
        hostname: mongodb
        container_name: mongodb
        expose:
      • "27017"
        ports:
      • "27018:27017"
        command: --smallfiles
        networks:
      • fiware
      1. GE encargado de la publicación y suscripción
        orion:
        image: fiware/orion:latest
        hostname: orion
        container_name: orion
        links:
      • mongodb
        expose:
      • "1026"
        ports:
      • "1026:1026"
        volumes:
      • "./data/db/mongo:/data/db:rw"
        command: -dbhost mongodb
        networks:
      • fiware
      1. GE encargada de la persistencia de datos
        cygnus:
        image: fiware/cygnus-ngsi:latest
        hostname: cygnus
        container_name: cygnus
        volumes:
      • "./config/cygnus/agent.conf:/opt/apache-flume/conf/agent.conf:rw"
      • "./config/cygnus/grouping_rules.conf:/opt/apache-flume/conf/grouping_rules.conf:rw"
        links:
      • mysql-cygnus
        expose:
      • "5050"
      • "8081"
        ports:
      • "5050:5050"
      • "8081:8081"
        environment:
      • CYGNUS_MYSQL_HOST=mysql-cygnus
      • CYGNUS_MYSQL_PORT=3306
      • CYGNUS_MYSQL_USER=root
      • CYGNUS_MYSQL_PASS=fiware
      • CYGNUS_LOG_LEVEL=INFO
        networks:
      • fiware
      1. Base de datos para historicos
        mysql-cygnus:
        image: mysql
        hostname: mysql-cygnus
        container_name: mysql-cygnus
        expose:
      • "3306"
        ports:
      • "3306:3306"
        environment:
      • MYSQL_ROOT_PASSWORD=fiware
        volumes:
      • "./data/db/mysql:/var/lib/mysql:rw"
        networks:
      • fiware
      1. GE de control de acceso
        authzforce:
        image: fiware/authzforce-ce-server:release-5.4.1
        hostname: authzforce
        container_name: authzforce
        expose:
      • "8080"
        ports:
      • "8080:8080"
      1. GE encargado de la administración de seguridad
        keyrock:
        image: fiware/idm:latest
        hostname: keyrock
        container_name: keyrock
        volumes:
      • "./config/idm/keystone.db:/keystone/keystone.db:rw"
      • "./config/idm/local_settings.py:/horizon/openstack_dashboard/local/local_settings.py:rw"
      • "./config/idm/keystone.conf:/keystone/etc/keystone.conf:rw"
        links:
      • orion
        expose:
      • "5000"
      • "8000"
        ports:
      • "5000:5000"
      • "8000:8000"
        networks:
      • fiware
      1. GE encargado del redireccionamiento
        pepwilma:
        image: ging/fiware-pep-proxy
        hostname: pepwilma
        container_name: pepwilma
        volumes:
      • "./config/pepproxy/config.js:/opt/fiware-pep-proxy/config.js:rw"
        links:
      • keyrock
      • orion
      • authzforce
        volumes_from:
      • keyrock
        expose:
      • "80"
        ports:
      • "80:80"
        networks:
      • fiware

      Creating and getting the token as you can see in the next wiki:get token.

      As you can see here:token

      I can't continue because pep proxy shows an error when i make the request to:
      postman request (without specifying a port)

      using this config.js:config.js

      got this error:error

      ERROR: Server - Caught exception: SyntaxError: Unexpected token E

      someone have a suggestion, and someone knows how can i deploy the https support?

      thanks for all...

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2018-03-19 12:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-03-19 12:05|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-03-22 06:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-03-22 06:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-03-22 09:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-03-22 09:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

          People

          • Assignee:
            dmitrii Dmitrii Demin
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: