This commit is contained in:
martin 2025-04-23 09:56:55 +02:00
parent 8ef4fba680
commit ab64ca93c9

View File

@ -1,22 +1,22 @@
# 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
}
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
# }
# }
server {