Skip to content

Commit

Permalink
Fixed potential security vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyanotfound committed Dec 6, 2024
1 parent a601832 commit ec767e7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server {
listen 80;
server_name yourdomain.com;
server_name talawa-admin.com;

root /usr/share/nginx/html;
index index.html;
Expand All @@ -15,10 +15,17 @@ server {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
add_header Access-Control-Allow-Headers "Content-Type, Authorization";
add_header X-Frame-Options "DENY";
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";
add_header Referrer-Policy "strict-origin-when-cross-origin";
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_bypass $http_upgrade;
}

Expand Down

0 comments on commit ec767e7

Please sign in to comment.