Skip to content

Commit

Permalink
[Deploy] PROD Manual deploy (#121)
Browse files Browse the repository at this point in the history
* [NO_JIRA] 경기장 이미지 필드 길이 조정 (#117)

* feat: 경기장 이미지 필드 길이 조정

* fix: 잘못 올라간 grafana 파일 삭제

* fix: loki 설정 전까지 prod에 Loki Appender 비활성화 (#119)

* feat: http에서 presigned url 403 확인을 위한 로그 추가 (#120)
  • Loading branch information
EunjiShin authored Aug 6, 2024
1 parent d78f8b1 commit 11142dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions application/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
</springProfile>

<springProfile name="prod">
<root level="ERROR">
<root level="INFO">
<appender-ref ref="CONSOLE_APPENDER"/>
<appender-ref ref="SENTRY_APPENDER"/>
<appender-ref ref="LOKI_APPENDER"/>
<!-- <appender-ref ref="LOKI_APPENDER"/>-->
</root>
</springProfile>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class PresignedUrlGenerator implements CreatePresignedUrlPort {

@Override
public String forImage(final Long memberId, PresignedUrlRequest request) {
log.info("presigned url generator: forImage");
isValidImageExtension(request.getFileExtension());

final ImageExtension fileExtension = ImageExtension.from(request.getFileExtension());
Expand All @@ -50,16 +51,19 @@ private void isValidImageExtension(final String fileExtension) {
}

private URL createPresignedUrl(final String fileName) {
log.info("presigned url generator: createPresignedUrl");
return amazonS3.generatePresignedUrl(createGeneratePreSignedUrlRequest(fileName));
}

private GeneratePresignedUrlRequest createGeneratePreSignedUrlRequest(final String fileName) {
log.info("presigned url generator: createGeneratePreSignedUrlRequest");
final String bucketName = ObjectStorageConfig.BUCKET_NAME;
GeneratePresignedUrlRequest generatePresignedUrlRequest =
new GeneratePresignedUrlRequest(bucketName, fileName)
.withMethod(HttpMethod.PUT)
.withExpiration(createPreSignedUrlExpiration());

log.info("presigned url generator: addRequestParameter");
generatePresignedUrlRequest.addRequestParameter(
Headers.S3_CANNED_ACL, CannedAccessControlList.PublicRead.toString());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public class StadiumEntity extends BaseEntity {
@Column(name = "name", nullable = false, length = 50)
private String name;

@Column(name = "main_image", length = 255)
@Column(name = "main_image", length = 300)
private String mainImage;

@Column(name = "seating_chart_image", length = 255)
@Column(name = "seating_chart_image", length = 300)
private String seatingChartImage;

@Column(name = "labeled_seating_chart_image", length = 255)
@Column(name = "labeled_seating_chart_image", length = 300)
private String labeledSeatingChartImage;

@Column(name = "is_active", nullable = false)
Expand Down

0 comments on commit 11142dc

Please sign in to comment.