Добавлена поддержка https для деплоя

This commit is contained in:
Daniil Makeev 2025-02-19 15:44:14 +03:00
parent a7323bb343
commit 99d6c53b90
2 changed files with 4 additions and 3 deletions

View File

@ -12,8 +12,7 @@ public class NoPopupBasicAuthenticationEntryPoint implements AuthenticationEntry
@Override
public void commence(HttpServletRequest request, HttpServletResponse response,
AuthenticationException authException) throws IOException, ServletException {
AuthenticationException authException) throws IOException {
response.sendError(HttpServletResponse.SC_FORBIDDEN, authException.getMessage());
}

View File

@ -8,4 +8,6 @@ spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
spring.datasource.username=postgres
spring.datasource.password=MobileDev
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=update
spring.jpa.hibernate.ddl-auto=update
# set up https
server.forward-headers-strategy=framework