Update with new components
This commit is contained in:
@ -1,10 +1,6 @@
|
||||
server:
|
||||
error:
|
||||
path: /error
|
||||
# whitelabel:
|
||||
# enabled: false
|
||||
|
||||
|
||||
|
||||
spring:
|
||||
mail:
|
||||
@ -22,22 +18,20 @@ spring:
|
||||
enable: true
|
||||
ssl:
|
||||
enable: false
|
||||
|
||||
datasource:
|
||||
# url: jdbc:mysql://mysql:3306/demo
|
||||
url: jdbc:mysql://210.18.189.94:8098/demo
|
||||
# url: jdbc:mysql://${MYSQL_HOST:db}:8098/demo
|
||||
username: youruser
|
||||
password: youruserpassword
|
||||
# url: ${SPRING_DATASOURCE_URL}
|
||||
# username: ${SPRING_DATASOURCE_USERNAME}
|
||||
# password: ${SPRING_DATASOURCE_PASSWORD}
|
||||
url: jdbc:mysql://localhost:3306/support_portal?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC
|
||||
username: support_portal_user
|
||||
password: Supp0rt_Porta!_P@ssword
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: update
|
||||
properties:
|
||||
hibernate:
|
||||
dialect: org.hibernate.dialect.MySQL8Dialect
|
||||
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 10MB
|
||||
@ -49,137 +43,40 @@ spring:
|
||||
resources:
|
||||
add-mappings: false
|
||||
|
||||
|
||||
|
||||
|
||||
# File upload configuration
|
||||
file:
|
||||
upload:
|
||||
directory: uploads
|
||||
|
||||
app:
|
||||
public-urls: /user/login,/user/register,/user/*/profile-image/**,/professors,/professors/**,/api/posts,/api/posts/*,/professor,/professor/*,/api/events,/api/events/*
|
||||
base-url: ${APP_BASE_URL:http://localhost:8080}
|
||||
# Updated public URLs to include image endpoints
|
||||
public-urls: /user/login,/user/register,/user/*/profile-image,/user/*/profile-image/**,/professors,/professors/**,/api/posts,/api/posts/*,/api/posts/posted,/api/posts/tag/*,/api/posts/tags/count,/api/files/**,/professor,/professor/*,/api/events,/api/events/*,/api/public/**,/api/jobs/active,/api/job-applications,/api/courses/active,/api/courses/*,/api/course-applications,/api/upcoming-events/active
|
||||
cors:
|
||||
allowed-origins: http://localhost:4200,https://localhost:4200,http://art-support-portal.s3-website.eu-north-1.amazonaws.com,http://portal.shyshkin.net,*
|
||||
allowed-origins: http://localhost:4200,https://localhost:4200,http://localhost:3000,https://localhost:3000,http://art-support-portal.s3-website.eu-north-1.amazonaws.com,http://portal.shyshkin.net,*
|
||||
jwt:
|
||||
secret: custom_text
|
||||
|
||||
|
||||
# secret: ${random.value} #Does not work - every time generates new value
|
||||
# jasypt:
|
||||
# encryptor:
|
||||
# # password: ${JASYPT_PASSWORD}
|
||||
# password: custom_text
|
||||
# algorithm: PBEWITHHMACSHA512ANDAES_256
|
||||
# iv-generator-classname: org.jasypt.iv.RandomIvGenerator
|
||||
---
|
||||
# Production file upload configuration
|
||||
spring:
|
||||
config:
|
||||
activate:
|
||||
on-profile: production
|
||||
file:
|
||||
upload:
|
||||
directory: /var/uploads/blog-images
|
||||
app:
|
||||
base-url: https://yourproductiondomain.com
|
||||
cors:
|
||||
allowed-origins: https://yourfrontenddomain.com,https://youradmindomain.com
|
||||
|
||||
---
|
||||
# spring:
|
||||
# config:
|
||||
# activate:
|
||||
# on-profile: local
|
||||
# datasource:
|
||||
# url: jdbc:mysql://210.18.189.94:8098/demo
|
||||
# username: youruser
|
||||
# password: youruserpassword
|
||||
|
||||
# jpa:
|
||||
# show-sql: true
|
||||
# logging:
|
||||
# level:
|
||||
# net.shyshkin: debug
|
||||
|
||||
---
|
||||
# spring:
|
||||
# config:
|
||||
# activate:
|
||||
# on-profile: aws-local
|
||||
# datasource:
|
||||
# url: jdbc:mysql://210.18.189.94:8098/demo
|
||||
# username: youruser
|
||||
# password: youruserpassword
|
||||
|
||||
# mail:
|
||||
# host: email-smtp.eu-north-1.amazonaws.com
|
||||
# port: 587
|
||||
# username: AKIAVW7XGDOWFHHCELIH
|
||||
# password: BJyWOWS1xWYR35MRCFn3BuuQ6vY+k7DRsdAvOfqDs/Fk
|
||||
|
||||
# we want to test (1) from localhost, (2) from S3 bucket Static Web Site, (3) from our EC2 instance
|
||||
# app:
|
||||
# email:
|
||||
# from: d.art.shishkin@gmail.com
|
||||
# carbon-copy: d.art.shishkin@gmail.com
|
||||
# cors:
|
||||
# allowed-origins: http://localhost:4200,http://art-support-portal.s3-website.eu-north-1.amazonaws.com,http://support-portal.shyshkin.net,http://portal.shyshkin.net
|
||||
# server:
|
||||
# port: 5000
|
||||
# logging:
|
||||
# level:
|
||||
# net.shyshkin: debug
|
||||
|
||||
---
|
||||
# spring:
|
||||
# config:
|
||||
# activate:
|
||||
# on-profile: aws-rds
|
||||
# datasource:
|
||||
# url: jdbc:mysql://210.18.189.94:8098/demo
|
||||
# username: youruser
|
||||
# password: youruserpassword
|
||||
|
||||
# mail:
|
||||
# host: email-smtp.eu-north-1.amazonaws.com
|
||||
# port: 587
|
||||
# username: custom_text
|
||||
# password: custom_text
|
||||
|
||||
# we want to test (1) from localhost, (2) from S3 bucket Static Web Site, (3) from our EC2 instance
|
||||
# app:
|
||||
# email:
|
||||
# from: d.art.shishkin@gmail.com
|
||||
# carbon-copy: d.art.shishkin@gmail.com
|
||||
# cors:
|
||||
# allowed-origins: http://localhost:4200,http://art-support-portal.s3-website.eu-north-1.amazonaws.com,http://support-portal.shyshkin.net,http://portal.shyshkin.net
|
||||
# server:
|
||||
# port: 5000
|
||||
# logging:
|
||||
# level:
|
||||
# net.shyshkin: debug
|
||||
|
||||
#####
|
||||
#
|
||||
# HTTPS configuration
|
||||
#
|
||||
#####
|
||||
|
||||
# server.ssl:
|
||||
# enabled: true # Enable HTTPS support (only accept HTTPS requests)
|
||||
# key-alias: securedPortal # Alias that identifies the key in the key store
|
||||
# key-store: classpath:securedPortal-keystore.p12 # Keystore location
|
||||
# key-store-password: custom_text
|
||||
# key-store-type: PKCS12 # Keystore format
|
||||
|
||||
# ---
|
||||
# spring:
|
||||
# config:
|
||||
# activate:
|
||||
# on-profile: image-s3
|
||||
# app:
|
||||
# amazon-s3:
|
||||
# bucket-name: portal-user-profile-images
|
||||
|
||||
# ---
|
||||
# spring:
|
||||
# config:
|
||||
# activate:
|
||||
# on-profile: image-s3-localstack
|
||||
# app:
|
||||
# amazon-s3:
|
||||
# bucket-name: portal-user-profile-images
|
||||
# config:
|
||||
# aws:
|
||||
# region: eu-north-1
|
||||
# s3:
|
||||
# url: http://127.0.0.1:4566
|
||||
# bucket-name: portal-user-profile-images
|
||||
# access-key: localstack
|
||||
# secret-key: localstack
|
||||
|
||||
|
||||
# Development file upload configuration with custom directory
|
||||
spring:
|
||||
config:
|
||||
activate:
|
||||
on-profile: dev-custom-upload
|
||||
file:
|
||||
upload:
|
||||
directory: ${user.home}/blog-uploads
|
||||
Reference in New Issue
Block a user