diff --git a/.gitignore b/.gitignore index 798f89b..bb70a53 100644 --- a/.gitignore +++ b/.gitignore @@ -168,4 +168,3 @@ gradle-app.setting # End of https://www.gitignore.io/api/java,macos,gradle,intellij # yaml 파일 -src/main/resources/application.yaml \ No newline at end of file diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml new file mode 100644 index 0000000..deb8762 --- /dev/null +++ b/src/main/resources/application.yaml @@ -0,0 +1,189 @@ +spring: + profiles: + active: local + +# local +--- +spring: + config: + activate: + on-profile: local + + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: ${db-url} + username: ${db-username} + password: ${db-password} + + jpa: + show-sql: true + hibernate: + ddl-auto: update + properties: + hibernate: + format_sql: true + servlet: + multipart: + max-file-size: 3MB + max-request-size: 4MB + +server: + port: 8080 + +cloud: + aws: + credentials: + accessKey: ${s3-access-key} + secretKey: ${s3-secret-key} + region: + static: ap-northeast-2 + s3: + bucket: ${s3-bucket} + stack: + auto: false + +springdoc: + packages-to-scan: indipage.org.indipage + default-consumes-media-type: application/json;charset=UTF-8 + default-produces-media-type: application/json;charset=UTF-8 + swagger-ui: + tags-sorter: alpha + operations-sorter: alpha + api-docs: + path: /api-docs/json + groups: + enabled: true + cache: + disabled: true + +jwt: + secret: ${jwt-secret} + +oauth: + apple: + client-id: ${apple-client-id} + nonce: ${apple-nonce} + google: + client-id: ${google-client-id} + +# set1 +--- + +spring: + config: + activate: + on-profile: set1 + + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: ${db-url} + username: ${db-username} + password: ${db-password} + + jpa: + show-sql: true + hibernate: + ddl-auto: update + properties: + hibernate: + format_sql: true + +server: + port: 8081 + +cloud: + aws: + credentials: + accessKey: ${s3-access-key} + secretKey: ${s3-secret-key} + region: + static: ap-northeast-2 + s3: + bucket: ${s3-bucket} + stack: + auto: false + +springdoc: + packages-to-scan: indipage.org.indipage + default-consumes-media-type: application/json;charset=UTF-8 + default-produces-media-type: application/json;charset=UTF-8 + swagger-ui: + tags-sorter: alpha + operations-sorter: alpha + api-docs: + path: /api-docs/json + groups: + enabled: true + cache: + disabled: true + +jwt: + secret: ${jwt-secret} + +oauth: + apple: + client-id: ${apple-client-id} + nonce: ${apple-nonce} + google: + client-id: ${google-client-id} + +# set2 +--- + +spring: + config: + activate: + on-profile: set2 + + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: ${db-url} + username: ${db-username} + password: ${db-password} + + jpa: + show-sql: true + hibernate: + ddl-auto: update + properties: + hibernate: + format_sql: true + +server: + port: 8082 + +cloud: + aws: + credentials: + accessKey: ${s3-access-key} + secretKey: ${s3-secret-key} + region: + static: ap-northeast-2 + s3: + bucket: ${s3-bucket} + stack: + auto: false + +jwt: + secret: ${jwt-secret} + +oauth: + apple: + client-id: ${apple-client-id} + nonce: ${apple-nonce} + google: + client-id: ${google-client-id} + +springdoc: + packages-to-scan: indipage.org.indipage + default-consumes-media-type: application/json;charset=UTF-8 + default-produces-media-type: application/json;charset=UTF-8 + swagger-ui: + tags-sorter: alpha + operations-sorter: alpha + api-docs: + path: /api-docs/json + groups: + enabled: true + cache: + disabled: true \ No newline at end of file