Closed MartinSunal closed 3 years ago
Yes, that can be achieved by deploying api-gateway with changed configuration (disabling https).
Assumption is that you are running FM v1.3 from here
stop and clean FRINX-machine if it is running:
docker stack rm fm
docker volume prune
modify api-gateway service in file composefiles/swarm-uniflow.yml to look like:
api-gateway:
image: frinx/api-gateway:1.0.0
environment:
- API_GATEWAY_HOST=api-gateway:5000
- DASHBOARD_HOST=dashboard:5001
- UNIFLOW_UI_HOST=uniflow-ui:3000
- UNIFLOW_API_HOST=uniflow-api:3001
- UNICONFIG_UI_HOST=uniconfig-ui:4000
- UNICONFIG_API_HOST=${CONSTRAINT_HOSTNAME}_uniconfig:8181
- API_GATEWAY_HTTPS=false
- UNICONFIG_UI_PROTOCOL=https
- UNICONFIG_API_PROTOCOL=https
volumes:
- ../config/api-gateway:/api-gateway/certificates
logging:
driver: "json-file"
options:
max-file: "3"
max-size: "10m"
ports:
- 80:5000
deploy:
placement:
constraints:
- node.hostname == ${CONSTRAINT_HOSTNAME}
mode: replicated
replicas: 1
healthcheck:
test: curl --insecure --silent --write-out 'HTTPSTATUS:%{http_code}' -X GET 'http://127.0.0.1:5000/uniflow/ui'
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
start FRINX-machine:
./startup.sh
After all services are up and running, go to browser:
http://127.0.0.1
Is there a way how to use http instead of https via browser?