-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS not being rendered correrctly and dashboard is blank #1462
Comments
Could you please upgrade to Spring Boot >= 2.2.x and Spring Boot Admin 2.2.x? |
with spring boot 2.2.x it is |
Still getting the same errors. Is there anything else that I can try? |
does your nginx set the |
It didn't. Then I did:
Now we're getting closer. Still no proper CSS layout but in the console some paths are being mixed up now: The extra domain seems suspicious here: When I'm removing it: |
can you provide a complete project to reproduce the issue? |
Take a look at your Security Configuration, since I made the initial setup there was some changes. You can find the documentation here: https://codecentric.github.io/spring-boot-admin/current/#_securing_spring_boot_admin_server |
@joshiste yep - https://github.com/vanniktech/spring-boot-admin-project
@daniel-scheibe-hagebau thanks for the hint. Didn't change anything though in regards to the CSS rendering though. |
Then take a look at the spring configuration I was configured it at the path location /spring-admin { But spring boot is not producing the right url for the assets. "https://api-dev.becoach.app/spring-adminapi-dev.becoach.app/assets/css/chunk-common.0a38869e.css" If you add the right context path to the url you are able to load the missing assets. ( curl https://api-dev.becoach.app/spring-admin/assets/css/chunk-common.0a38869e.css ) In my new bootstrapped spring boot admin (and config) service I dont use an own sudomain for this service and dont have to use an ui and context path configuration. This is maybe another solution to solve your problem. |
@vanniktech sorry for coming back to you so late.
|
If it still doesn't work for your it may be due to the https config (I removed while testing - to spare me the time for generating the certificates and stuff). |
After trying to switch the host of resource access,I solve this problem through nginx configuration |
Using Spring Boot 2.1.9.RELEASE & Spring Boot Admin 2.1.6 with this is my configuration file:
and the following NGINX configuration:
yields:
I can login but then I'm not seeing anything.
Also, with the login page the Chrome console is spitting out these errors:
I've already tried a few combinations of setting
spring.boot.admin.context-path
as well asspring.boot.admin.ui.public-url
but in no case I'm able to get it to work. Documentation is widely spread and some of the issues here contain dead links.What am I missing?
The text was updated successfully, but these errors were encountered: