Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 0 additions & 67 deletions .platform/nginx.conf

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/java/hsu/umc/server/aws/s3/AmazonS3Manager.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public String uploadFile(String keyName, MultipartFile file)throws IOException {
return amazonS3.getUrl(amazonConfig.getBucket(),keyName).toString();
}
public void deleteFile(String photoUrl){
String s3Key = photoUrl.replace("https://umc-7th.s3.ap-northeast-2.amazonaws.com/", "");
String s3Key = photoUrl.replace("https://umc-server.s3.ap-northeast-2.amazonaws.com/", "");
log.info("삭제할 s3 키 = {}", s3Key);
try {
amazonS3.deleteObject(new DeleteObjectRequest(amazonConfig.getBucket(), s3Key));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/hsu/umc/server/config/UMCConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class UMCConfiguration implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:5173","https://hansung-umc.netlify.app","https://umc.hsuumc.site")
.allowedOrigins("http://localhost:5173","https://hansung-umc.netlify.app","https://www.hsuumc.site")
.allowedMethods("GET", "POST", "PATCH", "DELETE", "PUT")
.allowedHeaders("*")
.allowCredentials(true);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spring:
jpa:
database-platform: org.hibernate.dialect.MySQL8Dialect
hibernate:
ddl-auto: none
ddl-auto: update

web:
cors:
Expand Down