Skip to content

Commit

Permalink
Add NGINX config to repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaillr committed Oct 29, 2024
1 parent e54d436 commit 7baa5f8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions nginx/sop.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
server {
listen 443 ssl;
server_name shitosuplayers.xyz www.shitosuplayers.xyz;

# SSL certificate configuration
ssl_certificate /etc/ssl/certs/shitosuplayers.xyz.pem;
ssl_certificate_key /etc/ssl/private/shitosuplayers.xyz.pem;
ssl_protocols TLSv1.2 TLSv1.3;

ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256';
ssl_prefer_server_ciphers on;

ssl_session_cache shared:SSL:10m;
ssl_session_timeout 1h;
ssl_session_tickets on;

# Reverse proxy configuration for server.js
location / {
proxy_pass http://localhost:3002;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

# Redirect HTTP to HTTPS for shitosuplayers.xyz
server {
listen 80;
server_name shitosuplayers.xyz www.shitosuplayers.xyz;
return 301 https://$host$request_uri; # Redirect to HTTPS
}

0 comments on commit 7baa5f8

Please sign in to comment.