Giter VIP home page Giter VIP logo

Comments (4)

andreasfritz avatar andreasfritz commented on June 7, 2024

Please take a look at the following example:
https://github.com/codecentric/spring-boot-admin-runtime-playground/tree/main/nginx
It shows a Spring Boot Admin and a Hello World app behind an nginx proxy.

from spring-boot-admin.

Jolymmiles avatar Jolymmiles commented on June 7, 2024

Please take a look at the following example: https://github.com/codecentric/spring-boot-admin-runtime-playground/tree/main/nginx It shows a Spring Boot Admin and a Hello World app behind an nginx proxy.

I try, but its not help(
How i send, my applications on other port 8080, 8081, but i also add specifying for traefik but stiil have white screen.
My compose:

version: '3.8'
services:
  admin:
    build:
      context: .
      dockerfile: Dockerfile
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    expose:
      - 8081
    environment:
      - PORT=8081
      - SECURITY_USER=admin
      - SECURITY_PASSWORD=admin
    restart: unless-stopped
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.backend-admin.rule=Host(`admin.example.com`)"
      - "traefik.http.services.backend-admin.loadbalancer.server.port=8081"
    networks:
      - proxy
networks:
  proxy:
    external: true

if i will use http it will work, but i wanna https

from spring-boot-admin.

erikpetzold avatar erikpetzold commented on June 7, 2024

Hi @Jolymmiles

where do you want to terminate the ssl connection? In traefik or in Spring Boot Admin server?

Probably you are missing some more labels like

- "traefik.http.routers.backend-admin-tls.tls=true"
- "traefik.http.routers.backend-admin-tls.entrypoints=https"
- "traefik.http.routers.backend-admin-tls.rule=Host(`admin.example.com`)"

We're no traefik experts but have seen things like this in other projects.


Besides ssl, please make sure the requests for frontend resources are going to the correct url. Therefore the public-url property must be set corretly (see example linked above). You can check that for example in the network tab of the browser dev tools.

from spring-boot-admin.

erikpetzold avatar erikpetzold commented on June 7, 2024

closed du to missing feedback

from spring-boot-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.