application-secret.yml

spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://database-1.c4jdluaykrgh.ap-northeast-2.rds.amazonaws.com:3306/bangle_db
#    url: jdbc:mysql://localhost:3306/bangle_db?serverTimezone=UTC&characterEncoding=UTF-8&collation=utf8mb4_bin
    username: admin
    password: 

  jpa:
    open-in-view: false
    hibernate:
      ddl-auto: update
      show_sql: true
      format_sql: true
      use_sql_comments: true
      dialect: org.hibernate.dialect.MySQL5InnoDBDialect

  security:
    oauth2:
      client:
        registration:
          kakao:
            client-id:  # 발급 받은 client-id #
            client-secret: 
            scope: profile_nickname, profile_image, account_email # 필요한 권한
            redirect-uri: http://localhost:8000/login/oauth2/code/kakao # redirect 주소
            authorization-grant-type: authorization_code
            client-name: kakao
            client-authentication-method: client_secret_post

        provider:
          kakao:
            authorization-uri: https://kauth.kakao.com/oauth/authorize
            token-uri: https://kauth.kakao.com/oauth/token
            user-info-uri: https://kapi.kakao.com/v2/user/me
            user-name-attribute: id

jwt:
  secret:  # 암호화 Key
  access-expiration: 1800000 # 30분
  refresh-expiration: 1209600000 # 14일

cloud:
  aws:
    credentials:
      access-key: 
      secret-key: 
    region:
      static: ap-northeast-2
    s3:
      bucket: bangle
    stack:
      auto: false
    prefix:
      url: https://bangle.s3.ap-northeast-2.amazonaws.com/

wallet:
  private: c8911b19bce08bd9a13496ad9c78e0b5f3de597e531a7a3efca27d8e2a224c94
  public: 3d2c953f0eabd4851906dce48a318bd8e55e3aae4710da55e820b7cd81d6a8ed468da0b5e063419cf5b73ea7823df23d2df09651a76d076319b99051cffe36ae
  address: "0xf95ece6dd4e2987466a3fa681fd46bf05d491ebc"

redis:
  host: j9a501.p.ssafy.io
  port: 6379
  password: ss501ss501

geth:
  rpc:
    url: http://nginx:[email protected]

api-key:
  chat-gpt: 

django:
  url: http://localhost:8888/api1/string-list/

index.html

django

pythom -m venv venv (하고나서 가상환경 접속)

pip install -r requirements.txt

python manage.py runserver

secrets.json

{
  "DB_NAME" : "bangle_db",
  "DB_USER" : "admin",
  "DB_PASS" : "ss501ss501",
  "DB_HOST" : "database-1.c4jdluaykrgh.ap-northeast-2.rds.amazonaws.com",
  "DB_PORT" : "3306"
}

Untitled