fix
This commit is contained in:
parent
8ef4fba680
commit
ab64ca93c9
@ -1,22 +1,22 @@
|
|||||||
|
|
||||||
# server {
|
server {
|
||||||
# listen 6379;
|
listen 6379;
|
||||||
# proxy_pass 192.168.178.107:6379; # Directly forward to Redis
|
proxy_pass 192.168.178.107:6379; # Directly forward to Redis
|
||||||
# proxy_set_header Host $host; # Preserve the original Host header
|
proxy_set_header Host $host; # Preserve the original Host header
|
||||||
# proxy_set_header X-Real-IP $remote_addr; # Preserve the client's IP
|
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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user