Skip to content

Commit

Permalink
fix:deploy https변경
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmondBreez3 committed Jan 8, 2024
1 parent f362d7e commit 4cec920
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Api/src/main/java/com/example/api/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public void addCorsMappings(CorsRegistry registry) {
allowedOriginPatterns.add("http://localhost:8080");
allowedOriginPatterns.add("http://3.35.246.60");
allowedOriginPatterns.add("http://3.35.246.60:8080");
allowedOriginPatterns.add("http://popcornmate.p-e.kr");
allowedOriginPatterns.add("https://popcornmate.p-e.kr");
allowedOriginPatterns.add("https://www.popcornmate.p-e.kr");

String[] patterns = allowedOriginPatterns.toArray(String[]::new);
registry.addMapping("/**")
Expand Down
2 changes: 1 addition & 1 deletion nginx/default.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server {
listen 80;
server_name *.compute.amazonaws.com;
server_name popcornmate.p-e.kr;

autoindex_localtime on;

Expand Down

0 comments on commit 4cec920

Please sign in to comment.