-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bddc069
commit 7da7579
Showing
1 changed file
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,30 @@ | ||
container_commands: | ||
01_reload_nginx: | ||
command: "service nginx reload" | ||
|
||
files: | ||
"/etc/nginx/conf.d/proxy.conf": | ||
mode: "000755" | ||
owner: root | ||
group: root | ||
content: | | ||
client_max_body_size 50M; | ||
"/etc/nginx/conf.d/proxy.conf": | ||
mode: "000755" | ||
owner: root | ||
group: root | ||
content: | | ||
client_max_body_size 50M; | ||
|
||
server { | ||
listen 80; | ||
|
||
location /api/ { | ||
if ($request_method = 'OPTIONS') { | ||
add_header 'Access-Control-Allow-Origin' 'https://techeermarket.site'; | ||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; | ||
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, Access-Control-Allow-Origin'; | ||
add_header 'Access-Control-Allow-Credentials' 'true'; | ||
return 204; | ||
} | ||
|
||
add_header 'Access-Control-Allow-Origin' 'https://techeermarket.site'; | ||
add_header 'Access-Control-Allow-Credentials' 'true'; | ||
|
||
proxy_pass http://localhost:5000; # Spring Boot 애플리케이션이 실행 중인 포트 | ||
} | ||
} |