https://github.com/jz543fm/iot-smart-home-application
https://github.com/jz543fm/iot-smart-home-application
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jz543fm/iot-smart-home-application
- Owner: jz543fm
- Created: 2022-04-12T06:54:27.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-12T08:47:28.000Z (about 3 years ago)
- Last Synced: 2025-01-05T09:29:25.890Z (5 months ago)
- Language: JavaScript
- Size: 622 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IoT Smart Home Application
`mvn clean`
`mvn install`
Swagger URL
`http://localhost:8082/swagger-ui/index.html?url=/v3/api-docs&validatorUrl=#/default`
Docker-composer with VPN:
`docker-compose up -d` or `docker-compose up -d --build``docker ps -a`
`docker logs `
`docker inspect `
`docker exec -it -u root bash`
Check via docker inspect IP address of running backend and change the nginx configuration file, via docker-exec on the web_1 container in `/etc/nginx/conf/default.conf` rewrite line 151
for nginx configuration for http connection from `proxy_pass http://localhost:8082/;` to `proxy_pass http://172.26.0.2:8082/;`
try `curl http://localhost:82/backend`
try: `curl http://localhost:82/swagger-ui.html`response: `404 Not found`
Check logs: `docker logs backend_web_vpn_service-iotapplication_smarthome | tail -n 5`
Why is not working swagger UI via VPN nginx reverse proxy????!!!!!!
Docker-compose without vpn:
`docker-compose -f docker-compose-local.yml -up -d` or `docker-compose -f docker-compose-local.yml up -d`
`docker ps -a'
`docker logs `
`docker inspect `
`docker exec -it -u root bash`