Git Product home page Git Product logo

42visitor's Introduction

42Visitor_server

스웨거 문서 주소: http://localhost:8080/swagger-ui.html

AWS SMS 기능 사용 시 설정

./src/main/resources/application-local.properties

cloud.aws.region.static= 선택 region
cloud.aws.stack.auto=false
aws.accessKey= 발급받은 KEY
aws.secretKey= 발급받은 KEY
aws.region= 해당 region

데이터베이스 설정

./src/main/resources/application-local.properties

spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/ftvisitor?characterEncoding=UTF-8&serverTimezone=Asia/Seoul
spring.datasource.username=계정
spring.datasource.password=비밀번호

에러 로그 슬렉 웹훅

./src/main/resources/application-local.properties

#Web Hook
log.slack-config.enabled=true
log.slack-config.web-hook-url = 웹훅URL
log.slack-config.channel=체널
log.level=ERROR (전송용 로그레벨 설정)

log.slack-config.enabled의 값을 True / False로 설정함으로서 설정한 log.level 이상에 해당하는 로그를 생성시 등록된 슬렉 체널로 전송할지를 선택 할 수 있습니다.

암호화 Seed 설정

./src/main/resources/application-local.properties

# Should be 16 letters
encrypt.seed=abcdefghij123456
encrypt.seed.init=abcdefghij123456

개인정보는 데이터베이스에 암호화되어서 저장됩니다. 암호화 되는 KEY를 지정을 해주셔야 하며, 16글자로 지정해주셔야합니다.

단축URL 서비스 API Key

./src/main/resources/application-local.properties

api-key=apikey

해당 서비스는 별도의 단축 URL 서비스를 구축해서 사용하고 있으며, 해당 서비스에서 사용하는 키 정보입니다. 문자메세지를 통해서 단축 URL 서비스를 사용하지 않으시려면 ShortUrlService의 파일을 삭제하거나 Bean 등록을 하지않고 ReserveController 파일에서 saveReserve 메서드와 updateReserve 메서드에서 단축 URL 서비스 사용부분

List<ShortUrlResponseDto> shortUrlList = shortUrlService.createShortUrls(visitors, staffReserveInfo);
    ...
log.info("Send message to Staff and Visitors");

을 제거하시고 사용하시면 됩니다.

혹은 단축 URL을 직접 구현하시거나 다른 플랫폼을 사용하셔서 ShortenerService를 관련해서 수정해주시면 됩니다.

42visitor's People

Contributors

ghkdwlgns612 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.