Hi,
I would like deploy simple Vaadin + Spring Boot app. App should be deploy under www.mypage/apps/settings/. I got the first page, but vaadinServlet is loaded from adderss http://www.mypage.com/vaadinServlet/UIDL/?v-uiId=0 and i got an error. The static resources are loaded successfully.
Next step was the usage of paramether :
-Dvaadin.servlet.urlMapping=/apps/settings/
But now I get empy page with the following message :
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
I also try adding paramether resources :
-Dvaadin.servlet.urlMapping=/apps/settings/ -Dvaadin.servlet.resources=/apps/settings/
But without success - error is the some.
I’m using Nginx as frontpage with the following config :
location /apps/settings/ {
client_max_body_size 50M;
proxy_read_timeout 600;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://127.0.0.1:8085/;
proxy_redirect http://127.0.0.1:8085/ http://127.0.0.1/;
}
This are some resource I have already investigate :
https://github.com/vaadin/spring/blob/master/vaadin-spring-boot/src/main/java/com/vaadin/spring/boot/internal/VaadinServletConfigurationProperties.java
https://github.com/vaadin/spring/issues/70
https://stackoverflow.com/questions/44487416/how-can-i-change-the-vaadin-page-url-in-spring-boot
Thank you for help,
Regards Matic