This commit is contained in:
martin 2025-04-23 09:55:26 +02:00
parent 30eae2b202
commit 5f25c59343

View File

@ -103,9 +103,20 @@ server {
ssl_certificate_key /etc/letsencrypt/live/club.ligalytics.com/privkey.pem; # managed by Certbot
}
server {
listen 6379;
proxy_pass 192.168.178.107:6379; # Directly forward to Redis
proxy_set_header Host $host; # Preserve the original Host header
proxy_set_header X-Real-IP $remote_addr; # Preserve the client's IP
# server {
# listen 6379;
# proxy_pass 192.168.178.107:6379; # Directly forward to Redis
# proxy_set_header Host $host; # Preserve the original Host header
# proxy_set_header X-Real-IP $remote_addr; # Preserve the client's IP
# }
stream {
upstream redis_backend {
server 192.168.178.107:6379; # Redis server address and port
}
server {
listen 6379; # Port Nginx will listen on for incoming requests
proxy_pass redis_backend; # Forward all requests to Redis
}
}