Skip to content

Commit

Permalink
refactor: user agent 다시 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sangwonsheep committed Jan 9, 2025
1 parent f75ee85 commit c3cc5a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/baguni-batch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ COPY ${JAR_FILE} /app/baguni-batch.jar
EXPOSE 8080

# 애플리케이션 실행
ENTRYPOINT ["java", "-jar", "-Duser.timezone=Asia/Seoul", "/app/baguni-batch.jar"]
ENTRYPOINT ["java", "-jar", "-Duser.timezone=Asia/Seoul", "/app/baguni-batch.jar"]
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public Map<String, String> read(URI uri) throws OpenGraphException {
private WebDriver chromeOptionSetting() {
ChromeOptions options = new ChromeOptions();
options.addArguments("--headless"); // 브라우저 UI 없이 백그라운드로 동작
options.addArguments("--user-agent=" + openGraphOption.getUserAgent());
options.addArguments("--no-sandbox");
options.addArguments("--single-process");
options.addArguments("--start-maximized");
Expand Down

0 comments on commit c3cc5a4

Please sign in to comment.