Resolved RabbitMQ issue and added configuration.
This commit is contained in:
@@ -33,6 +33,7 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
|
|||||||
@Override
|
@Override
|
||||||
public void registerStompEndpoints(StompEndpointRegistry registry) {
|
public void registerStompEndpoints(StompEndpointRegistry registry) {
|
||||||
|
|
||||||
registry.addEndpoint("/wss").setAllowedOrigins("http://localhost:3000").withSockJS();
|
registry.addEndpoint("/wss").setAllowedOrigins("http://localhost:3000", "http://127.0.0.1:5500/", "https://bandi-staging.memento.credit/**", "https://bandi.gepafin.it/**")
|
||||||
|
.withSockJS();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ appointment.portal.context=GEPAFINPORTAL
|
|||||||
flagDaFirmare=false
|
flagDaFirmare=false
|
||||||
|
|
||||||
# RabbitMQ properties for STOMP broker relay for Notification
|
# RabbitMQ properties for STOMP broker relay for Notification
|
||||||
spring.rabbitmq.host=rabitmq.bflows.ai
|
spring.rabbitmq.host=rabbitmq.bflows.ai
|
||||||
spring.rabbitmq.port=61613
|
spring.rabbitmq.port=61613
|
||||||
spring.rabbitmq.username=guest
|
spring.rabbitmq.username=guest
|
||||||
spring.rabbitmq.password=guest
|
spring.rabbitmq.password=guest
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# DataSource Configuration
|
# DataSource Configuration
|
||||||
spring.datasource.url=jdbc:postgresql://localhost:5432/gepafin_local
|
spring.datasource.url=jdbc:postgresql://localhost:5432/gepafin_dev_local
|
||||||
spring.datasource.username=postgres
|
spring.datasource.username=root
|
||||||
spring.datasource.password=root
|
spring.datasource.password=root
|
||||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ appointment.portal.context=GEPAFINPORTAL
|
|||||||
flagDaFirmare=true
|
flagDaFirmare=true
|
||||||
|
|
||||||
# RabbitMQ properties for STOMP broker relay for Notification
|
# RabbitMQ properties for STOMP broker relay for Notification
|
||||||
spring.rabbitmq.host=rabitmq.bflows.ai
|
spring.rabbitmq.host=rabbitmq.bflows.ai
|
||||||
spring.rabbitmq.port=61613
|
spring.rabbitmq.port=61613
|
||||||
spring.rabbitmq.username=guest
|
spring.rabbitmq.username=guest
|
||||||
spring.rabbitmq.password=guest
|
spring.rabbitmq.password=guest
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ appointment.portal.context=GEPAFINPORTAL
|
|||||||
flagDaFirmare=false
|
flagDaFirmare=false
|
||||||
|
|
||||||
# RabbitMQ properties for STOMP broker relay for Notification
|
# RabbitMQ properties for STOMP broker relay for Notification
|
||||||
spring.rabbitmq.host=rabitmq.bflows.ai
|
spring.rabbitmq.host=rabbitmq.bflows.ai
|
||||||
spring.rabbitmq.port=61613
|
spring.rabbitmq.port=61613
|
||||||
spring.rabbitmq.username=guest
|
spring.rabbitmq.username=guest
|
||||||
spring.rabbitmq.password=guest
|
spring.rabbitmq.password=guest
|
||||||
|
|||||||
Reference in New Issue
Block a user