1
General Discussion / Re: Nginx problems
« on: May 30, 2023, 12:09:28 am »
@Fright - that is exactly what I’m using! All traffic comes in on TCP80/443 streams and uses SNI mappings. I’ve applied the patch and restarted Nginx. Initially nothing seemed to change after restarting Nginx service, so reading what your patch does, and just to be sure, I made sure proxy protocol was disabled on the stream that’s using SNI, re-saved, and applied configuration. Sites are all up and running again. Thanks a ton for such a quick response!!!
Code: [Select]
# opnsense-patch -c plugins -a kulikov-a 3683586
Fetched 3683586 via https://github.com/kulikov-a/plugins
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|From 368358625e3126f0a73530739d00bf3d589e099f Mon Sep 17 00:00:00 2001
|From: kulikov-a <36099472+kulikov-a@users.noreply.github.com>
|Date: Mon, 29 May 2023 21:16:26 +0300
|Subject: [PATCH] 'upstream' is undefined quickfix
|
|dont try to set proxy_protocol value for sni mapped streams
|---
| .../src/opnsense/service/templates/OPNsense/Nginx/streams.conf | 2 +-
| 1 file changed, 1 insertion(+), 1 deletion(-)
|
|diff --git a/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/streams.conf b/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/streams.conf
|index a2d306079c..8915f32653 100644
|--- a/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/streams.conf
|+++ b/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/streams.conf
--------------------------
Patching file opnsense/service/templates/OPNsense/Nginx/streams.conf using Plan A...
Hunk #1 succeeded at 96.
done
All patches have been applied successfully. Have a nice day.