Re: Content Security Policy Headers are not appearing

2022-11-29 Thread Maxim Dounin
Hello! On Tue, Nov 29, 2022 at 10:35:22PM -0500, blason wrote: > Well this is particularly I noticed for https vhost config. The CSP headers > are properly being displayed for http but not https. > > Here is my config > > more /etc/nginx/conf.d/sec-headers.conf > > add_header Content-Security-

Re: Content Security Policy Headers are not appearing

2022-11-29 Thread blason
Well this is particularly I noticed for https vhost config. The CSP headers are properly being displayed for http but not https. Here is my config more /etc/nginx/conf.d/sec-headers.conf add_header Content-Security-Policy "default-src 'self'; font-src *;img-src * data:; script-src *; style-src *

Content Security Policy Headers are not appearing

2022-11-29 Thread blason
Hi All, I am trying to set a CSP headers in my nginx reverse proxy and those are not appearing even after multiple attempts. Any idea what is wrong or why the header is not getting added? TIA Blason R Posted at Nginx Forum: https://forum.nginx.org/read.php?2,295928,295928#msg-295928 __

Re: nginx returns html instead of json response

2022-11-29 Thread Kaushal Shriyan
Hi Francis, Thanks a lot for all your help and support. It worked. I have configured the below settings in nginx after a few attempts by tweaking it. It worked like a charm. location /apis { # First attempt to serve request as file, then # as directory, then fall b

Re: nginx listen port 8443, redirect 8080 port to another IP

2022-11-29 Thread mfaridi
Thanks can you give some example config for this problem? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,295923,295925#msg-295925 ___ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org

Re: nginx listen port 8443, redirect 8080 port to another IP

2022-11-29 Thread blason
Yes - with Proxy_pass you can and if not use Iptables to port forward the traffic. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,295923,295924#msg-295924 ___ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@

nginx listen port 8443, redirect 8080 port to another IP

2022-11-29 Thread mfaridi
I want my NGINX server listen on port 8443 and accept all requests come to port 8443, if some requests want use port 8080, I want NGINX redirect this requests to another NGINX on different IP. for example my first NGINX has 1.2.3.4:8443 and second NGINX has 5.6.7.8:8080 I want first NGINX can send