Skip to content

Commit

Permalink
Merge pull request #133 from maticnetwork/DEVOPS-2599-cors-issue-update
Browse files Browse the repository at this point in the history
landing page for static app with health check config
  • Loading branch information
sshrihar authored Apr 5, 2024
2 parents 526c328 + acffd12 commit 90e9906
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Health Check</title>
</head>
<body>
<div style="text-align: center; padding-top: 50px;">
<h1>Success</h1>
<p>The application is up and running.</p>
</div>
</body>
</html>
9 changes: 8 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@ http {

server {
listen 80;

location /health-check {
alias /usr/share/nginx/html/index.html;
}
location / {
root /usr/share/nginx/html;
index index.html index.htm;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Credentials false;
add_header Access-Control-Allow-Headers *;
add_header Access-Control-Allow-Methods ALL;
add_header Access-Control-Expose-Headers *;

}
}
}

0 comments on commit 90e9906

Please sign in to comment.