fix
This commit is contained in:
parent
30eae2b202
commit
5f25c59343
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user