implementacja zmiennych środowiskowych
This commit is contained in:
@@ -1,39 +1,41 @@
|
|||||||
spring.application.name=ArtisanConnectBackend
|
spring.application.name=ArtisanConnectBackend
|
||||||
|
|
||||||
## PostgreSQL
|
## PostgreSQL
|
||||||
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
|
spring.datasource.url=${DB_URL:jdbc:postgresql://db:5432/postgres}
|
||||||
|
spring.datasource.username=${DB_USER:postgres}
|
||||||
|
spring.datasource.password=${DB_PASS:postgres}
|
||||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||||
spring.datasource.username=postgres
|
|
||||||
spring.datasource.password=postgres
|
|
||||||
|
|
||||||
#initial data for db injection
|
#Injekcja danych przyk?adowych przy starcie bazy
|
||||||
spring.sql.init.data-locations=classpath:sql/data.sql
|
spring.sql.init.data-locations=classpath:sql/data.sql
|
||||||
spring.sql.init.mode=always
|
spring.sql.init.mode=always
|
||||||
spring.jpa.defer-datasource-initialization=true
|
spring.jpa.defer-datasource-initialization=true
|
||||||
|
|
||||||
# create and drop table, good for testing, production set to none or comment it
|
#Sposób zachowania JPA
|
||||||
spring.jpa.hibernate.ddl-auto=create-drop
|
spring.jpa.hibernate.ddl-auto=create-drop
|
||||||
|
|
||||||
file.upload-dir=/Users/andsol/Desktop/uploads
|
#Gdzie uploadujemy zdj?cia i maksymalny rozmiar
|
||||||
spring.servlet.multipart.max-file-size=10MB
|
file.upload-dir=${IMAGES_UPLOAD_DIR:/app/images}
|
||||||
spring.servlet.multipart.max-request-size=10MB
|
spring.servlet.multipart.max-file-size=${MAX_FILE_SIZE:10MB}
|
||||||
|
spring.servlet.multipart.max-request-size=${MAX_REQUEST_SIZE:10MB}
|
||||||
|
|
||||||
spring.mail.host=smtp.sendgrid.net
|
#Ustawienia wysy?ania maili
|
||||||
spring.mail.port=587
|
spring.mail.host=${MAIL_HOST}
|
||||||
spring.mail.username=apikey
|
spring.mail.port=${MAIL_PORT}
|
||||||
spring.mail.password=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
|
spring.mail.username=${MAIL_USER}
|
||||||
spring.mail.properties.mail.smtp.auth=true
|
spring.mail.password=${MAIL_PASSWORD}
|
||||||
spring.mail.properties.mail.smtp.starttls.enable=true
|
|
||||||
|
|
||||||
tpay.clientId = 01JQKC048X62ST9V59HNRSXD92-01JQKC2CQHPYXQFSFX8BKC24BX
|
#Ustawienia TPay
|
||||||
tpay.clientSecret = 44898642be53381cdcc47f3e44bf5a15e592f5d270fc3a6cf6fb81a8b8ebffb9
|
tpay.clientId=${TPAY_CLIENT_ID}
|
||||||
tpay.authUrl = https://openapi.sandbox.tpay.com/oauth/auth
|
tpay.clientSecret=${TPAY_SECRET}
|
||||||
tpay.transactionUrl = https://openapi.sandbox.tpay.com/transactions
|
tpay.authUrl=${TPAY_AUTH_URL}
|
||||||
tpay.securityCode = )IY7E)YSM!A)Q6O-GN#U7U_33s9qObk8
|
tpay.transactionUrl=${TPAY_TRANSACTION_URL}
|
||||||
|
tpay.securityCode = ${TPAY_SECURITY_CODE}
|
||||||
|
|
||||||
#jwt settings
|
#Ustawienia JWT
|
||||||
jwt.secret=DIXLsOs3FKmCAQwISd0SKsHMXJrPl3IKIRkVlkOvYW7kEcdUTbxh8zFe1B3eZWkY
|
jwt.secret=${JWT_SECRET}
|
||||||
jwt.expiration=300000
|
jwt.expiration=1200000
|
||||||
|
|
||||||
|
#Ustawienia logowania
|
||||||
logging.file.name=logs/payment-notifications.log
|
logging.file.name=logs/payment-notifications.log
|
||||||
logging.level.TpayLogger=INFO
|
logging.level.TpayLogger=INFO
|
||||||
Reference in New Issue
Block a user