Skip to content

Commit

Permalink
commits for make
Browse files Browse the repository at this point in the history
  • Loading branch information
JishnuS420 committed Jan 26, 2024
1 parent 4e57070 commit 6ffda7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions _notebooks/2024-01-25-Deployment-lesson.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,14 @@
"server {\n",
" listen 80;\n",
" listen [::]:80;\n",
" server_name -----.example.nighthawkcodingsociety.com ; # change server name to your domain\n",
" server_name -----stu.example.nighthawkcodingsociety.com ; # change server name to your domain\n",
" location / {\n",
" proxy_pass http://localhost:8000; # change port to yours\n",
" if ($request_method ~* \"(GET|POST|PUT|DELETE)\") {\n",
" add_header \"Access-Control-Allow-Origin\" *;\n",
" }\n",
" if ($request_method = OPTIONS ) {\n",
" add_header \"Access-Control-Allow-Origin\" *;\n",
" add_header \"Access-Control-Allow-Origin\" *; # add specific github page\n",
" add_header \"Access-Control-Allow-Methods\" \"GET, POST, PUT, DELETE, OPTIONS, HEAD\"; # request methods above match here\n",
" add_header \"Access-Control-Allow-Headers\" \"Authorization, Origin, X-Requested-With, Content-Type, Accept\";\n",
" return 200;\n",
Expand All @@ -331,6 +331,7 @@
"metadata": {},
"source": [
"3. **Validation and Restart:**\n",
" - Symbolic link needed \n",
" - Validate with `sudo nginx -t`\n",
" - Restart NGINX: `sudo systemctl restart nginx`\n",
" - Test your domain on your desktop browser (http://)\n",
Expand Down
3 changes: 2 additions & 1 deletion _posts/2024-01-17-signin.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ <h2>Sign In</h2>
// alert("Signed In!")
// return;
// });
// fetch
})
};
</script>
Expand Down Expand Up @@ -309,4 +310,4 @@ <h2>Sign In</h2>
.goback p a:hover{
text-decoration: underline;
}
</style>
</style>

0 comments on commit 6ffda7b

Please sign in to comment.