Skip to content

Commit

Permalink
fix: cors test25
Browse files Browse the repository at this point in the history
  • Loading branch information
toychip committed Aug 4, 2024
1 parent 7a0c146 commit 3a59db4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .platform/nginx/conf.d/elasticbeanstalk/00_application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ server {
gzip_comp_level 4;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;

location /health {
access_log off;
return 200 'OK';
add_header Content-Type text/plain;
}

location / {
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
Expand Down
11 changes: 10 additions & 1 deletion .platform/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ http {
server {
listen 80 default_server;
server_name dojo-backend-eb-env.eba-33qhzuax.ap-northeast-2.elasticbeanstalk.com;
return 301 https://$host$request_uri;

location /health {
access_log off;
return 200 'OK';
add_header Content-Type text/plain;
}

location / {
return 301 https://$host$request_uri;
}
}
}

0 comments on commit 3a59db4

Please sign in to comment.