Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] - 프로덕션 모니터링 구축 #620

Merged
merged 4 commits into from
Dec 8, 2024
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
8 changes: 6 additions & 2 deletions backend/src/main/java/kr/touroot/TourootApplication.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package kr.touroot;

import org.springframework.boot.SpringApplication;
import com.ulisesbocchio.jasyptspringboot.environment.StandardEncryptableEnvironment;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

Expand All @@ -11,6 +12,9 @@
public class TourootApplication {

public static void main(String[] args) {
SpringApplication.run(TourootApplication.class, args);
new SpringApplicationBuilder()
.environment(new StandardEncryptableEnvironment())
.sources(TourootApplication.class)
.run(args);
}
}
4 changes: 3 additions & 1 deletion backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ cloud:
origin-storage-path: touroot-dev/

loki:
loki-url: http://loki:3100/loki/api/v1/push
loki-url: ENC(4BSlONNK5dOy2fX12yswIMZvkYVEFy93a1fmDA2/p3z/zrOivXbO9h3On685umt1)
---
# prod profile
spring:
Expand Down Expand Up @@ -194,3 +194,5 @@ cloud:
image-base-uri: https://touroot.kr/
origin-storage-path: touroot/

loki:
loki-url: ENC(FHJkwYBoGIuSifQd/92GjnWRS1nvcil2CPFCcWbTicu4rMe/gyFRYzQeqAMCyPkr)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저희 DEV profile의 loki-url은 평문 상태인데 이 부분도 암호화가 필요할까요~?
만약 필요하다면 확인 한 번 부탁드림다 🙇

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

http://loki:3100/loki/api/v1/push 는 IP 주소가 노출되지 않아서 괜찮을 것 같아욥!

하지만 숨겨서 나쁠거 없으니 숨겨보도록 하겠습니다!!

1 change: 1 addition & 0 deletions backend/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@

<springProfile name="prod">
<root level="INFO">
<appender-ref ref="LOKI"/>
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE-INFO"/>
<appender-ref ref="FILE-WARN"/>
Expand Down
Loading