Commit cd0fcace authored by Ghitha Dinan's avatar Ghitha Dinan

add file contoller

parent d7ad7ed6
......@@ -2,8 +2,8 @@ package id.co.sangkuriang.inovasi.daerah.master.constant
import java.io.File
const val ROOT_DIR = "C:\\Users\\ghith\\Desktop\\inovasi_daerah_master\\"
//const val ROOT_DIR = "/home/inovasi_daerah_master/data/"
//const val ROOT_DIR = "C:\\Users\\ghith\\Desktop\\inovasi_daerah_master\\"
const val ROOT_DIR = "/home/inovasi_daerah_master/data/"
val UPLOAD_DIR = "${ROOT_DIR}uploads${File.separator}"
val UPLOAD_ICON_APPLICATION_CATEGORY_DIR = "${UPLOAD_DIR}apllication_category/icon"
......
......@@ -4,13 +4,13 @@ spring.profiles.active=development
server.port=8080
# DATABASE CONFIG
spring.datasource.url=jdbc:postgresql://localhost:5432/inovasi_daerah_db
spring.datasource.username=postgres
spring.datasource.password=root
#spring.datasource.url=jdbc:postgresql://localhost:5432/inovasi_daerah_db
#spring.datasource.username=postgres
#spring.datasource.password=root
#spring.datasource.url=jdbc:postgresql://pgadmin.spbe.sangkuriang.co.id:5432/inovasi_daerah_db
#spring.datasource.username=u_inovasi_daerah
#spring.datasource.password=wV9Tnx6S8TmmUYXdgkmN4pzreSD3RE
spring.datasource.url=jdbc:postgresql://pgadmin.spbe.sangkuriang.co.id:5432/inovasi_daerah_db
spring.datasource.username=u_inovasi_daerah
spring.datasource.password=wV9Tnx6S8TmmUYXdgkmN4pzreSD3RE
spring.jpa.hibernate.ddl-auto=none
......@@ -26,15 +26,3 @@ spring.jpa.properties.hibernate.format_sql=true
# UPLOAD CONFIG
spring.servlet.multipart.max-file-size=500MB
spring.servlet.multipart.max-request-size=500MB
# MAIl CONFIG
spring.mail.host=smtp.gmail.com
spring.mail.port=587
spring.mail.username=dinanhafiza@gmail.com
spring.mail.password=sembalap1991
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.connectiontimeout=5000
spring.mail.properties.mail.smtp.timeout=5000
spring.mail.properties.mail.smtp.writetimeout=5000
spring.mail.properties.mail.smtp.starttls.enable=true
......@@ -2,8 +2,8 @@
<!-- configuration file for LogBack (slf4J implementation)
See here for more details: http://gordondickens.com/wordpress/2013/03/27/sawing-through-the-java-loggers/ -->
<configuration scan="true" scanPeriod="30 seconds">
<property name="DEV_HOME" value="C:\\Users\\ghith\\Desktop\\inovasi_daerah_master\\log"/>
<!-- <property name="DEV_HOME" value="/home/inovasi_daerah_master/log"/>-->
<!-- <property name="DEV_HOME" value="C:\\Users\\ghith\\Desktop\\inovasi_daerah_master\\log"/>-->
<property name="DEV_HOME" value="/home/inovasi_daerah_master/log"/>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment