diff --git a/support-portal-backend/pom.xml b/support-portal-backend/pom.xml
index 335e426..51acd4b 100644
--- a/support-portal-backend/pom.xml
+++ b/support-portal-backend/pom.xml
@@ -122,6 +122,8 @@
lombok
+ true
+ support-portal
diff --git a/support-portal-backend/src/main/resources/application.yml b/support-portal-backend/src/main/resources/application.yml
index fc3c337..6fa8f68 100644
--- a/support-portal-backend/src/main/resources/application.yml
+++ b/support-portal-backend/src/main/resources/application.yml
@@ -29,6 +29,11 @@ spring:
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL8Dialect
+ servlet:
+ multipart:
+ max-file-size: 10MB
+ max-request-size: 100MB
+
# mvc:
# throw-exception-if-no-handler-found: true
# web:
@@ -37,7 +42,7 @@ spring:
app:
public-urls: /user/login,/user/register,/user/*/image/**,/user/image/**
cors:
- allowed-origins: http://localhost:4200,https://localhost:4200
+ allowed-origins: http://localhost:4200,https://localhost:4200,http://art-support-portal.s3-website.eu-north-1.amazonaws.com
jwt:
secret: VeRy_5ecretP@55W0rd!
# secret: ${random.value} #Does not work - every time generates new value
@@ -52,4 +57,21 @@ spring:
show-sql: true
logging:
level:
- net.shyshkin: debug
\ No newline at end of file
+ net.shyshkin: debug
+
+---
+spring:
+ config:
+ activate:
+ on-profile: aws-local
+ datasource:
+ url: jdbc:mysql://localhost:3306/support_portal
+ username: support_portal_user
+ password: Supp0rt_Porta!_P@ssword
+
+# we want to test (1) from localhost, (2) from S3 bucket Static Web Site, (3) from our EC2 instance
+app:
+ cors:
+ allowed-origins: http://localhost:4200,http://art-support-portal.s3-website.eu-north-1.amazonaws.com,http://support-portal.shyshkin.net
+server:
+ port: 5000