remove data
This commit is contained in:
@@ -1,29 +0,0 @@
|
|||||||
package com.server.api.config;
|
|
||||||
|
|
||||||
import org.springframework.context.annotation.Bean;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
import org.springframework.web.servlet.config.annotation.CorsRegistry;
|
|
||||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
||||||
|
|
||||||
@Configuration
|
|
||||||
public class WebConfig {
|
|
||||||
|
|
||||||
@Bean
|
|
||||||
public WebMvcConfigurer corsConfigurer() {
|
|
||||||
return new WebMvcConfigurer() {
|
|
||||||
@Override
|
|
||||||
public void addCorsMappings(CorsRegistry registry) {
|
|
||||||
registry
|
|
||||||
.addMapping("/**") // Erlaubt alle Endpunkte
|
|
||||||
.allowedOrigins(
|
|
||||||
"http://localhost:3050",
|
|
||||||
"http://nextjs-app:3050",
|
|
||||||
"https://erp.wolga-kreativ.de") // Erlaubt Anfragen von Next.js
|
|
||||||
.allowedMethods(
|
|
||||||
"GET", "POST", "PUT", "DELETE", "OPTIONS") // Erlaubt spezifische HTTP-Methoden
|
|
||||||
.allowedHeaders("*") // Erlaubt alle Header
|
|
||||||
.allowCredentials(true); // Erlaubt Cookies/Authentifizierung
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
spring.application.name=api
|
|
||||||
|
|
||||||
spring.datasource.url=${DB_URL:jdbc:postgresql://localhost:5432/postgres}
|
|
||||||
spring.datasource.username=${DB_USERNAME:postgres}
|
|
||||||
spring.datasource.password=${DB_PASSWORD:mysecretpassword}
|
|
||||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
|
||||||
spring.jpa.hibernate.ddl-auto=update
|
|
||||||
spring.jpa.show-sql=true
|
|
||||||
spring.datasource.hikari.minimum-idle=5
|
|
||||||
spring.datasource.hikari.maximum-pool-size=10
|
|
||||||
spring.datasource.hikari.idle-timeout=30000
|
|
||||||
spring.datasource.hikari.pool-name=HikariPool-1
|
|
||||||
spring.datasource.hikari.max-lifetime=1800000
|
|
||||||
spring.datasource.hikari.connection-timeout=30000
|
|
||||||
spring.servlet.multipart.enabled=false
|
|
||||||
spring.profiles.active=development
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user