Skip to content

Commit

Permalink
feat: typo, nginx.conf again
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfromyeg committed Jan 7, 2024
1 parent 9e24686 commit d49fa47
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ const Footer: React.FC = () => {
<div className="flex flex-col items-center justify-center p-8 bg-white rounded-lg shadow-md max-w-md w-full mx-auto my-6">
<h1 className="text-4xl font-bold text-center mb-3">BeReal. Recap.</h1>
<p className="text-center max-w-sm mb-3">
Create a recap video of your BeReals for 2022 or 2023. Only users your
Create a recap video of your BeReals for 2022 or 2023. Only uses your
phone number and does not store any information. Videos are deleted
after 24 hours and only accessible by you!
</p>
Expand Down
13 changes: 13 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,22 @@ server {

ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;

add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
add_header 'Access-Control-Allow-Origin' 'bereal.michaeldemar.co';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization';

location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' 'bereal.michaeldemar.co';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization';
add_header 'Content-Length' 0;
add_header 'Content-Type' 'text/plain; charset=utf-8';
return 204;
}

if ($request_method !~ ^(GET|POST)$) {
return 403;
}
Expand Down

0 comments on commit d49fa47

Please sign in to comment.